SitePoint Enthusiast
I have a group of select boxes generated from MySQL on a page and when the user hits the submit button how do I get the selected values into PHP so that I can process them into a query.
Help please????
Ross
Say your form contains the following select box:
<SELECT NAME="myselect" SIZE=1>
<OPTION VALUE=1>One
<OPTION VALUE=2>Two
<OPTION VALUE=3>Three
</SELECT>
When the form is submitted, the target PHP script (named in the ACTION attribute of the FORM tag) can access the selected value as $myselect .
If this doesn't work, ensure that register_globals is set to On in your php.ini file.
------------------
-Kevin Yank.
http://www.SitePoint.com/
Helping Small Business Grow Online!
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks