IceDragon Posted July 29, 2008 Share Posted July 29, 2008 hiya, Can someone please tell me what is wrong with the following code.. I keep getting Parse error: parse error, unexpected T_STRING in /home/www/mywebsite.com/test.php on line 2 <?php $wrong="<form action='index.php' method='post'><input type='hidden' name='ID' value='1'>TEXT<br>TEXT:<br><input type='text' name='test' size='30'><br><input type='submit' name='submit' value='Submit'></form><br /><br /><font color="red">Wrong!</font>"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/117093-solved-t_string-error/ Share on other sites More sharing options...
.josh Posted July 29, 2008 Share Posted July 29, 2008 look at the colors of that text string you will notice right there at the end "red" is in blue that's an indication that your quotes aren't right. Change the quotes around red to single quotes. Quote Link to comment https://forums.phpfreaks.com/topic/117093-solved-t_string-error/#findComment-602234 Share on other sites More sharing options...
IceDragon Posted July 29, 2008 Author Share Posted July 29, 2008 ah. Silly me Thanks! btw, how come you're always the one to answer my problems? Quote Link to comment https://forums.phpfreaks.com/topic/117093-solved-t_string-error/#findComment-602242 Share on other sites More sharing options...
.josh Posted July 29, 2008 Share Posted July 29, 2008 I got the shortest straw. Quote Link to comment https://forums.phpfreaks.com/topic/117093-solved-t_string-error/#findComment-602251 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.