Page 1 of 1

HTML Arrays

Posted: Sat Nov 08, 2008 4:38 pm
by alex.barylski
I know you can pass an array of selections from a multiple list with something like:

Code: Select all

<select name="items[]">  ...</select>
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

Re: HTML Arrays

Posted: Sat Nov 08, 2008 5:49 pm
by alex.barylski
EDIT | I know I could use a date picker control but I am trying to favour accessibility here so that isn't an ultimate option. :)