drop downs and mysql

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
User avatar
sergei
Forum Commoner
Posts: 33
Joined: Mon Oct 06, 2003 4:17 am

drop downs and mysql

Post 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 ?
User avatar
xisle
Forum Contributor
Posts: 249
Joined: Wed Jun 25, 2003 1:53 pm

Post by xisle »

With register globals off...
<option value=\"$_POST['whatever']\">$_POST['whatever']</option>
with them on...
<option value=\"$whatever\">$whatever</option>
Post Reply