User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » HTML input field and spaces problem Page [1]  
aaronburro
Sup, B
53146 Posts
user info
edit post

I'm writing an application that gets information from an HTML form. I need the user to be able to enter address information, which usually requires a space in the field. However, when I go to retrieve the info from the field, everything after any space is truncated. IE, if the user enters "88 bimini road," all I get returned from the form is "88".

I am using the standard POST method and an input type of "text." wtf am I n00bing on?

2/22/2006 6:56:33 PM

qntmfred
retired
40818 Posts
user info
edit post

post ur code

2/22/2006 7:57:38 PM

aaronburro
Sup, B
53146 Posts
user info
edit post

show us yer n00bs!

[form name="editAddressForm" action="EditAddress" method="POST"]
[input type="text" name="address1"]
[/form]

changed the brackets, of course

2/22/2006 9:23:41 PM

qntmfred
retired
40818 Posts
user info
edit post

what about the code that processes the input

2/22/2006 9:52:20 PM

aaronburro
Sup, B
53146 Posts
user info
edit post

its a simple JSP script that does request.getParameter("address1")

2/22/2006 10:02:23 PM

 Message Boards » Tech Talk » HTML input field and spaces problem Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.