I have create a form, after details have been submitted I am trying to open an Iframe for the response. But I keep receiving an error in the line in bold. This is my code:
// this code is within my php code
if($result){
**echo <li><iframe width="420" height="315" src="datasave.php" frameborder="0"></iframe></li>**
}
else{
echo"ERROR"
}
datasave.php ==> This is the code in this file
<?php
echo Your details have been sent successfully!;
?>
Either:
Leave PHP mode if you want to go into output mode. You can't just put raw HTML where PHP is expected.
or
Put delimiters (
"
or'
usually) around your PHP strings.