ChrisMartino Posted October 29, 2009 Share Posted October 29, 2009 Hey this is my statment: echo "<form action=""><textarea"readonly="readonly">http://fotosnap.net/images/$image_name</textarea> </form>"; But i get the following errors: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/www/public_html/fotosnap.net/index.php on line 91 Link to comment https://forums.phpfreaks.com/topic/179428-echo-text-into-textbox/ Share on other sites More sharing options...
MadTechie Posted October 29, 2009 Share Posted October 29, 2009 you need to escape the inner quotes (\") ie echo "<form action=\"\"><textarea readonly=\"readonly\">http://fotosnap.net/images/$image_name</textarea> </form>"; Link to comment https://forums.phpfreaks.com/topic/179428-echo-text-into-textbox/#findComment-946722 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.