Re: Q: SELECT VALUE in OPTION

CyberWeb (web@sowebo.CHARM.NET)
Wed, 14 Sep 1994 10:40:24 -0400 (EDT)


> > <FORM ACTION="/cgi-bin/test-cgi">
> > <SELECT NAME="M">
> > <OPTION VALUE="value1"> Text 1
> > <OPTION VALUE="value2"> Text 2
> > </SELECT><INPUT TYPE="submit" VALUE="go"></FORM>
> > ..
> >
> > One implementation wrong? Or my HTML wrong? Or "undefined behaviour"?
>
> I have been trying to find an answer to this question for some time.

Simply plug it into the HaLsoft Validation Service at
http://www.hal.com/users/connolly/html-test/service/validation-form.html
and you'll find that no errors are flagged. You can then follow the
link to the HTML 2.0 specs, and come to
http://www.hal.com/products/sw/olias/Build-html/BRgs0XBMCmF84aK.html
which says:
[...]
value

When present indicates the value to be returned if this option is chosen.
The returned value defaults to the contents of the option element.

The contents of the option element is presented to the user to represent the
option. It is used as a returned value if the value attribute is not present.

Alan. http://guinan.gsfc.nasa.gov/Alan/Richmond.html
____________________________________________________________________
World-Wide Web Virtual Library http://www.charm.net/~web/Vlib.html