[5572] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Re: Q: SELECT VALUE in OPTION

daemon@ATHENA.MIT.EDU (CyberWeb)
Wed Sep 14 10:40:27 1994

Date: Wed, 14 Sep 1994 16:28:13 +0200
Errors-To: listmaster@www0.cern.ch
Errors-To: listmaster@www0.cern.ch
Reply-To: web@sowebo.CHARM.NET
From: "CyberWeb" <web@sowebo.CHARM.NET>
To: Multiple recipients of list <www-talk@www0.cern.ch>

> > <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

home help back first fref pref prev next nref lref last post