[eluser]Juan Velandia[/eluser]
Hello everyone
I have a form like this :
Code:
<input type="text" name="fecha[]" value="" id="a1"/>
<input type="text" name="fecha[]" value="" id="a2"/>
<input type="text" name="fecha[]" value="" id="a3"/>
<input type="text" name="fecha[]" value="" id="a4"/>
<input type="text" name="fecha[]" value="" id="a5"/>
I fill some values in the form, submitted it and the next step is:
Code:
$fecha = $this->input->post('fecha');
print_r($fecha)
And I get something like this
Code:
Array
(
[0] => 1
[1] => 24
[2] => 25
[3] => 28
[4] => 38
[5] => 39
)
I really need to obtain the id besides of the value of each field from the post. How would you do it. Thanks in advance!