guilmet Posted August 7, 2011 Share Posted August 7, 2011 I am trying to take database info and put into a text box so I can edit. however when I add text box it truncates when there is a space. for example if the city is St Louis, only St will display. however without the text box the info is there, so it's something to do with the textbox i think. here is an ex code. <td><label for=\"city\">City</label><input type=\"text\" name=\"city\" value={$row['city']} /></td> the live link is http://phillydatasolutions.com/projects/diamond-bus/index.php the customer link is what im working on at the moment Link to comment https://forums.phpfreaks.com/topic/244149-values-in-textbox/ Share on other sites More sharing options...
Pikachu2000 Posted August 7, 2011 Share Posted August 7, 2011 The value attribute needs to be in quotes to be valid markup. value=\"{$row['city']}\" Link to comment https://forums.phpfreaks.com/topic/244149-values-in-textbox/#findComment-1253847 Share on other sites More sharing options...
guilmet Posted August 7, 2011 Author Share Posted August 7, 2011 The value attribute needs to be in quotes to be valid markup. value=\"{$row['city']}\" thanks its working... Link to comment https://forums.phpfreaks.com/topic/244149-values-in-textbox/#findComment-1253911 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.