Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

POST - only getting 1st word of submitted field

Status
Not open for further replies.

notrut

Programmer
Feb 6, 2002
87
CA
Hi,

I'm new to PHP. Anyways, I am submitting a form, however, I am only getting the 1st word of a field. For example I have an input box, and when I type in a first and last name into that box, I only get the first name. Looks like the form is cutting off everything after the space??

Is there some sort of encoding I have to do??

Any help would be greatly apprecited.
 
Usually the problem you're experiencing appears when outputting the information into another input box. That means that html that produces the form is faulty. There's a good reason XHTML advocates quotes around every attribute value. If attribute has no quotes and you want to put words separated by a space as the value there's no way for the browser to know where the value ended and new began and that is why it only takes the first word. Can you try quoting the value and see if it helps? If it doesn't, we will need more information on what you're doing and some code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top