在下面的代码中,我在echo语句中添加<a href=\"member.php\"></a>
。但是,当我在PHP中添加超链接时,出现语法错误。有什么我在这里失踪?谢谢。无法在PHP echo语句中放置超链接
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
更新了逃生的标签。
转义“around member.php - 'echo”blah arunkumar
这两个'else's显然会失败。 – seriousdev
哈哈,还有更多的代码 – Graham