Jump to content

HTML input form


Go to solution Solved by 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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.