Multiple Selection Problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
crandym
Forum Newbie
Posts: 21
Joined: Thu Jan 29, 2004 8:52 am

Multiple Selection Problem

Post by crandym »

I am dynamically generating an HTML selection list (<SELECT> <OPTION>.....) so a user can select multiple entries. The form action is set to call a submit.php form. In php code on the submit.php form, I am trying to get the value of the "multiple" selection via. HTTP_POST_VARS. The selection list is named, however the variable that is set by HTTP_POST_VARS only returns the last item selected in the list. How do I get the other values that are selected in the same list?


thanx

crandym
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post by DuFF »

You will probably need to do it the same way you would with checkboxes. Check out this tutorial for some more help:

http://codewalkers.com/tutorials/12/4.html
Post Reply