dmcglone Posted April 30, 2013 Share Posted April 30, 2013 I'm stumped. does an HTML input form show all the text in it even when there are spaces?I have an input form that holds and address and it's value is filled from a database. and when I grab the info in an input form it's only getting the text before the first space, for example if the address field contains 111 anywhere dr., my input field only gets 111. I have no other place in my code that would be cutting off the rest of the address, so I'm lost. I've never seen this type of problem. So my question is, should this form field be text instead of input? I don't believe it should. here's my php code:<input type='text' name='address' value=$address> field in db is varchar with a width of 25 Thanks, David M. Link to comment https://forums.phpfreaks.com/topic/277457-html-input-form/ Share on other sites More sharing options...
akphidelt2007 Posted April 30, 2013 Share Posted April 30, 2013 Put quotation marks around $address Link to comment https://forums.phpfreaks.com/topic/277457-html-input-form/#findComment-1427313 Share on other sites More sharing options...
dmcglone Posted April 30, 2013 Author Share Posted April 30, 2013 Put quotation marks around $address Ah, Thank you... LOL I have overlooked that since yesterday and didn't realize the quotes were missing. Link to comment https://forums.phpfreaks.com/topic/277457-html-input-form/#findComment-1427314 Share on other sites More sharing options...
akphidelt2007 Posted April 30, 2013 Share Posted April 30, 2013 Ah, Thank you... LOL I have overlooked that since yesterday and didn't realize the quotes were missing. Happens to the best of us, Link to comment https://forums.phpfreaks.com/topic/277457-html-input-form/#findComment-1427316 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.