![]() |
optgroup and $_POST
I cannot retrieve all the values of an optgroup set to multiple.
When I use the following PHP script, I get only one of the multiply-selected optgroup values: PHP Code:
html Code:
What I expect to happen is that, if someone selects "Volvo" and "Audi", then, when rerieving $_POST, I should see both "Volvo" and "Audi". As it is now, the PHP print command is only returning "Audi". Thank you. ModNote: read, http://www.talkphp.com/lounge/4563-p...e-talkphp.html Thank you |
change the name of the select to Vote101[], this will make PHP process it as an array.
also PHP Code:
PHP Code:
PHP Code:
|
Thank you sketchMedia.
If I can impose a bit more... I tried combining the two foreach structures thus: PHP Code:
Vote100 is: Milk Vote101 is: Array I'll try to figure this out on my own, but... |
| All times are GMT. The time now is 04:46 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0