pls i am still new in php and i have been having problem with this line of code but couldn't resole it.i don't if it has to do with changing a setting in my php.ini file.can any one help please.the line of code follows.
<?php
if ($POST["fname"] == "Joe"){
line 9 * echo "<p> Hi $POST['fname'] </p>";**
}
else {
echo "<h2>Your name’s not Joe, so you can’t enter the Web site.</h2>";
}
?>
each time i run the code it gives me an error message showing line 9(the line with asterisk).but to me everything seems to be correct.CAN ANY ONE HELP ME PLEASE.
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\wamp\www\phphr\phtest.php on line 9