On 1/5/06, RA Jones <[EMAIL PROTECTED]> wrote:
> What is the best way to use DFV (via CAP::ValidateRM) with drop-down
> menus which have default as blank?
>
> To elaborate with an example - field entry 'last_name' is required by
> check_rm(), so an empty submission should trigger an error, and does.
> But the problem is to satisfy HTML validation I have to use the
> following html construct:
>
> <select name="last_name">
>    <option>&nbsp;</option>
>    <option>name_1></option>
>    .......
> </select>

The 'value' attribute should help you here:

<option value="">-- please select one --</option>

Cheers,

Cees

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to