Dropdown with PHP and Javascript


New member
In $_POST['hw_reg_1'] or $_GET['hw_reg_1'] (Depending on your form's method), you have the value of the selected option for that perticular SELECT tag. In this case: hw_reg_1.
So, in here $_POST['hw_reg_1'], you have the result to store in the field you already know.

The same for the second one (hw_reg_2).

Did i get you right !?
Hope it helps!