Jump to content

HTML input form


dmcglone

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.