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

HTML selects, output blank 1

Status
Not open for further replies.

SmokeyJoe

Programmer
Nov 13, 2000
80
US
I have a form for entering name and addresses. These contain both US and foreign addresses. I have a "Select" containing each of the states and one containing the foreign countries.

At present if the user does not manually select the first item in each select is inserted in the persons record. (They would get "Alabama" as their home state.)

I am aware I could simply put a blank field in the select that appeared in the select window. Is there another way to do this?

Thanks

SmokeyJoe
 
I use this...

<option value=0>-Select One-</option>

Then I check for the value of zero and if I see it then I place whatever I want into the database based on the value.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top