In the code below I'm adding <a href=\"member.php\"></a> in the echo statement. But, I'm getting a syntax error when I add any hyperlink in my PHP. Is there something I'm missing here? Thank you.
if ($username==$dbusername && $password==$dbpassword)
{
echo "You're in! <a href=\"member.php\"><!--I'm getting the sytax error in the hyper link here.-->Click here</a> to enter the member area";
}
else
echo "Incorrect username/password";
}
else
die('That user does not exist');
}
else
die('Please enter a username/password');
?>
UPDATE
Updated with escape tags.
You need to escape your quotes:
echo "You're in! <a href=\"member.php\">Hello!</a>";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With