[eluser]Michal1[/eluser]
Hey guys,
I am trying do a thing which will pass the values from 3 dropdowns to a one array. The reason why I am doing this is that.
I have three dropdowns. First one contains numbers from 1-31 second one has 1-12 and the third one has 2009,2010,2011
Most of you now probably realised that those are like a date dropdowns.
Now I have an array data and I want to insert into that selected values from all three dropdowns. Is that possible? Or do I need to create 3 fields in an array for each dropdown and have something like this
Code:
$data=array(
'day'=>$this->input->post('day_dropdown'),
'month'=>$this->input->post('month_dropdown'),
'year'=>$this->input->post('year_dropdown')
);
I would rather have something like this
code]$data=array(
'date'=>$this->input->post(alldropdown values..or something like that)
);
[/code]
Or is there any better view hot to handle dropdowns with date?
Thank you