hlstriker Posted July 27, 2006 Share Posted July 27, 2006 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"> Username: <input type="text" name="user"> <br> Password: <input type="password" name="pass"> <br> <input name="Login" type="submit" id="Login" value="Login"> <input name="Reset" type="reset" id="Reset" value="Reset"></form><a href="index.php?act=register">Register a new account";[/code] Link to comment https://forums.phpfreaks.com/topic/15836-unexpected-t_string/ Share on other sites More sharing options...
king arthur Posted July 27, 2006 Share Posted July 27, 2006 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. Link to comment https://forums.phpfreaks.com/topic/15836-unexpected-t_string/#findComment-64831 Share on other sites More sharing options...
hlstriker Posted July 27, 2006 Author Share Posted July 27, 2006 Thanks alot :)Fixed problem! Link to comment https://forums.phpfreaks.com/topic/15836-unexpected-t_string/#findComment-64838 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.