Current time: 04-20-2014, 06:26 AM Hello There, Guest! (LoginRegister)

Post Reply 
Form mail dilemma
03-01-2002, 02:25 PM
Post: #1
Form mail dilemma
A question for all fellow HTML experts out there:

Is it possible to make a SELECT pull-down OPTION field in a form mail "required" AND the first pre-selected option (e.g. "Please choose a day") unacceptable (i.e. it would bounce to my custom error page)? In other words, viewers must choose one of the real options in order to submit successfully. I don't know if DH's support form works exactly like that (as I don't think it's a good idea to send a test mail over there).

<SELECT name="Day">
<OPTION selected>Please choose a day:</OPTION>
<OPTION>Monday</OPTION>
<OPTION>Tuesdat</OPTION>
<OPTION>Wednesday</OPTION>
<OPTION>Thursday</OPTION>
<OPTION>Friday</OPTION>
</SELECT>

Any enlightment will be appreciated. Thanks.
Find all posts by this user
Quote this message in a reply
03-02-2002, 03:08 AM
Post: #2
Form mail dilemma
sure, you can just set the value of the first select option to be blank, and it'll consider it not selected. so like this:

<option value="" selected>Please select a day</option>

josh!
Find all posts by this user
Quote this message in a reply
03-02-2002, 05:41 PM
Post: #3
Form mail dilemma
Thanks a lot, Josh. I owe you a drink :-)
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: