You are here: Re: How do you insert a value from drop down list to SQL table? « All PHP « IT news, forums, messages
Re: How do you insert a value from drop down list to SQL table?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация