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 Quote Link to comment 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']}\" Quote Link to comment 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... 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.