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 Quote 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>"; Quote Link to comment https://forums.phpfreaks.com/topic/179428-echo-text-into-textbox/#findComment-946722 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.