HTML Arrays
Posted: Sat Nov 08, 2008 4:38 pm
I know you can pass an array of selections from a multiple list with something like:
But what I would like to do is have multiple <select> which are single selection (drop down) all named the same but return to PHP as a single request variable in array format.
Basically I have three drop downs:
- Month
- Day
- Year
Each currently label month, day, year but ideally I'd like the all named date[] and have each selection posted back as an array, possible?
Probably not but I figured I'd ask.
Cheers,
Alex
Code: Select all
<select name="items[]"> ...</select>Basically I have three drop downs:
- Month
- Day
- Year
Each currently label month, day, year but ideally I'd like the all named date[] and have each selection posted back as an array, possible?
Probably not but I figured I'd ask.
Cheers,
Alex