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. Quote Link to comment Share on other sites More sharing options...
akphidelt2007 Posted April 30, 2013 Share Posted April 30, 2013 Put quotation marks around $address Quote Link to comment Share on other sites More sharing options...
Solution dmcglone Posted April 30, 2013 Author Solution 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. Quote Link to comment 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, 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.