English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi,

I have a form with a drop down in:





I need it so that when one of the options is selected, it sends the value off to a database.

I already have this php code for a normal type in input:

Description:

Thanks

2007-03-14 10:25:23 · 2 answers · asked by jeff lemon 1 in Computers & Internet Programming & Design

2 answers

Maybe your you have something that looks like this

you should have a , whatever you have inside the "" marks. so just post it like this, $_POST['select'], so just add another $_POST to your code, just with the value of whatever your select name is. I'm new to this too, so I hope this helps. let me know, beachdan@iastate.edu

2007-03-14 13:42:16 · answer #1 · answered by Daniel B 2 · 0 0

If you want to insert the current selected value to database, you have to use AJAX.
Just add onChange event in

On in insertDB (a javascript function), you will have to implement ajax and post this data to a server side php script so that it can be inserted to database.

It this is not what u r asking, then please come up with more details.

2007-03-15 00:35:26 · answer #2 · answered by Atif Majid 3 · 0 0

fedest.com, questions and answers