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 Link to comment https://forums.phpfreaks.com/topic/63950-solved-php-into-text-box/ 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> Link to comment https://forums.phpfreaks.com/topic/63950-solved-php-into-text-box/#findComment-318762 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> Link to comment https://forums.phpfreaks.com/topic/63950-solved-php-into-text-box/#findComment-318763 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! Link to comment https://forums.phpfreaks.com/topic/63950-solved-php-into-text-box/#findComment-318766 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.