[PHP] Select List/Menu

2009-04-17 Thread David Stoltz
If I allow multiple selections in a MENU LIST, in VBSCRIPT it comes
through with each selection being separated by a comma, in the same
variable...ie.:

myVal = request(mySelectmenu)

myVal could equal - selection 1, selection 2, selection 3

But in PHP, I capture it as:

$mySelectMenu = $_POST[mySelectmenu];

But $mySelectMenu only contains the last selection in the menu

How do I capture all the selections?

Thanks!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Select List/Menu

2009-04-17 Thread Richard Heyes
 in VBSCRIPT

In what?

Use [] at the end of your selects name:

select name=mySelect[]
   ...
/select

-- 
Richard Heyes

HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.net (Updated April 11th)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php