Form mail dilemma

Form mail dilemma

Posted by: prufrock
Posted on: 2002-03-01 13:25:00

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.

Re: Form mail dilemma

Posted by: Josh
Posted on: 2002-03-02 02:08:00

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!

Re: Form mail dilemma

Posted by: prufrock
Posted on: 2002-03-02 16:41:00

Thanks a lot, Josh. I owe you a drink :-)

Tags: form mailtest mailunacceptabledilemmabouncesuccessfullyidea