Jump to content


This topic is now archived and is closed to further replies.


unexpected T_STRING?

Recommended Posts

Hey everyone, when it gets to this line of code it tells me...
[code]Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'[/code]

Here is the code that is on the line when it blows up, is something wrong with it?
[code]echo "<form name="Login Form" method="post" action="login.php">
<input type="text" name="user">
<input type="password" name="pass">
<input name="Login" type="submit" id="Login" value="Login">
<input name="Reset" type="reset" id="Reset" value="Reset">
<a href="index.php?act=register">Register a new account";[/code]

Share this post

Link to post
Share on other sites
You need to escape all the double quotes inside the string with a backslash \ or replace them all with single quotes, or just replace the start and end quotes with single ones.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.