Page 1 of 1

drop downs and mysql

Posted: Thu Nov 27, 2003 7:49 am
by sergei
I've populated a drop down menu from a mysql database.

How do I capture the drop down menu's option value and have something happen based on the selected value ?

Posted: Thu Nov 27, 2003 9:37 am
by xisle
With register globals off...
<option value=\"$_POST['whatever']\">$_POST['whatever']</option>
with them on...
<option value=\"$whatever\">$whatever</option>