Daily Archives: 14/06/2012
How To: Insert Data into MySQL Database Using Drop Down Box in PHP
Using PHP and Mysql, we can store data obtained from drop down box into mysql table. The biggest reason for using drop down box is it allows user to only one option only i.e., limited options. A question may arise radio button also gives this functionality of selecting of only one option, but what is special in drop down box? Reason is more options can be given with low area (space in webpage) and can easily fetch by typing first letter of the option.
Read also: How To: Insert Multiple Values Using Dropdown List Box in PHP
Create database "data" and table "tb".
[code type=sql]




