I have a php script I want to echo some html with. I keep getting this error:
Parse error: syntax error, unexpected T_ECHO
echo "<a onClick=\"" window.location.href='test.php'; "\" class='container'>test</a>";
I have a php script I want to echo some html with. I keep getting this error:
Parse error: syntax error, unexpected T_ECHO
echo "<a onClick=\"" window.location.href='test.php'; "\" class='container'>test</a>";
Try this:
echo "<a onClick=\"window.location.href='test.php'\" class='container'>test</a>";