| 
	
 | 
 Posted by Andy Hassall on 01/27/06 01:48 
On 26 Jan 2006 11:35:15 -0800, "Blockhead" <johnmigliorisi@gmail.com> wrote: 
 
>A common mistake however is that when creating a menu, most people 
>forget to actually assign a value to each option, so even though 
>various menu choices appear to the user, when they click submit, a NULL 
>or empty value is submitted with the form. 
> 
>This will look right on the screen but not not work properly: 
><select name="menu1"> 
><option>item 1</option> 
 
 http://www.w3.org/TR/html4/interact/forms.html#adef-value-OPTION 
 
"value = cdata [CS] 
    This attribute specifies the initial value of the control. If this 
attribute is not set, the initial value is set to the contents of the OPTION 
element." 
 
--  
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk 
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
 
  
Navigation:
[Reply to this message] 
 |