Welcome Guest, Not a member yet? Register   Sign In
Passing values from dropdown to an array as one
#4

[eluser]danmontgomery[/eluser]
jQuery datepicker, generally.

Just a small correction to Derek's post, HTML arrays don't use quotes:

Code:
<select name="selection_date[day]">...</select>
<select name="selection_date[month]">...</select>
<select name="selection_date[year]">...</select>

This gives you what you're asking for, all 3 values in one array. If you have 3 dropdowns, you're going to have 3 values.


Messages In This Thread
Passing values from dropdown to an array as one - by El Forum - 03-02-2011, 07:00 AM
Passing values from dropdown to an array as one - by El Forum - 03-02-2011, 07:06 AM
Passing values from dropdown to an array as one - by El Forum - 03-02-2011, 07:31 AM
Passing values from dropdown to an array as one - by El Forum - 03-02-2011, 07:35 AM
Passing values from dropdown to an array as one - by El Forum - 03-02-2011, 01:00 PM
Passing values from dropdown to an array as one - by El Forum - 03-02-2011, 02:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB