php_novice2007 Posted August 8, 2007 Share Posted August 8, 2007 Hi, I've got a php string, $name = "john smith"; On my page I wrote <input type="text" size=20 value=<? echo $nameame; ?> name=newUserName> Only "john" is displayed in the input box.. How do I get the full name? Thanks Quote Link to comment Share on other sites More sharing options...
Orio Posted August 8, 2007 Share Posted August 8, 2007 use quotes around the value: <input type="text" size=20 value="<? echo $nameame; ?>" name=newUserName> Quote Link to comment Share on other sites More sharing options...
Technex Posted August 8, 2007 Share Posted August 8, 2007 Try this: <input type="text" value="<? echo $name; ?>" name=newUserName> Quote Link to comment Share on other sites More sharing options...
php_novice2007 Posted August 8, 2007 Author Share Posted August 8, 2007 Thanks for the super fast replies! Quote Link to comment 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.