insert data into database with the help of a drop down box

hi ..
need the code for insertin data frm the drop down list into the table..

if my html code for the drop down list is as follws:


also need code for insertin into drop down list from a text box present in an other .php file

hopin to recieve a solution for my problem..


  • Use $_POST['choice'] to get the value from the dropdown list en insert it into a table. In the example you gave, you've set the values for the two items 1 and 2. You will get a 1 or a 2 as value. You can use text values in the dropdown boxes.

    Good luck.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion