Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.
Moderator: General Moderators
sergei
Forum Commoner
Posts: 33 Joined: Mon Oct 06, 2003 4:17 am
Post
by sergei » Thu Nov 27, 2003 7:49 am
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 ?
xisle
Forum Contributor
Posts: 249 Joined: Wed Jun 25, 2003 1:53 pm
Post
by xisle » Thu Nov 27, 2003 9:37 am
With register globals off...
<option value=\"$_POST['whatever']\">$_POST['whatever']</option>
with them on...
<option value=\"$whatever\">$whatever</option>