|
Posted by Geoff Berrow on 01/27/06 01:19
Message-ID: <1138304115.016073.301240@g47g2000cwa.googlegroups.com> from
Blockhead contained the following:
>
>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>
><option>item 2</option>
><option>item 3</option>
></select>
>
>this is how it needs to be:
><select name="menu1">
><option value ="item 1">item 1</option>
><option value ="item 2">item 2</option>
><option value ="item 3">item 3</option>
></select>
Interesting. But wrong.
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
Navigation:
[Reply to this message]
|