|
| |
|
|
shoky
Posts: 25 Joined: 9/13/2005 Status: offline
|
Don't pass Radio button Value - 11/10/2007 11:56:51
I have a form where users select from Radio buttons. The last selection is other. When you select other a text box appears for user input. How do I get just the text input passed? Say you type IT Company in the box. What I'm getting is Other, IT Company. How can I get rid of the word Other and the Comma? Also if I select one the named Radio Buttons - I get Contractor, How do I get rid of the Comma in this case? Here's a link: http://efire.info/cust_service.aspx Any Ideas?!
|
|
|
|
William Lee
Posts: 1137 Joined: 1/25/2002 From: Singapore Status: offline
|
RE: Don't pass Radio button Value - 11/10/2007 20:17:35
The reason why you are getting the Comma is because the textbox is named the same as the Radio buttons. When you submit the form, they are sent over as array. eg Customer_Type(Other, IT Company) or Customer_Type( Contractor, ) The value in the textbox is sent as well even though it is empty.
_____________________________
William Lee
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|