HTML Arrays

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

HTML Arrays

Post 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
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: HTML Arrays

Post 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. :)
Post Reply