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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I prevent empty textbox values being posted in the URL?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have written a html questionnaire that includes radio buttons, checkboxes, drop-down menus, textfields and textareas. When I click submit on an incomplete questionnaire, questions that use radio buttons and checkboxes do not appear in the querystring, but questions that use textfields, textareas and drop-down menus do, even if they have no value
i.e.

Is there any way of preventing this?

Thanks

PS using the post method is not an option - i need to use the get method in my form
 
hie
i'm afraid that textfield value wuld be passed always..
but u can prevent form from submitin if some fields werent filled in regards, vic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top