Welcome Guest, Not a member yet? Register   Sign In
Saving checkboxes
#1

[eluser]easymind[/eluser]
Once it worked, but now I am lost. I want to save checkboxes so I have a form like:
Code:
<form method="POST" action="somehwere.php">
&lt;input type="checkbox" name="id_categories[]" value="1"&gt; option1<br/>
&lt;input type="checkbox" name="id_categories[]" value="2"&gt; option2<br/>
&lt;input type="checkbox" name="id_categories[]" value="3"&gt; option3<br/>
&lt;input type="submit"&gt;
&lt;/form&gt;
It seems I cannot read the values anymore when posted. I cannot access the data with:
Code:
$this->input->post('id_categories');
or
$_POST['id_categories']
even when I do:
echo "<pre>".print_r($_POST,1)."</pre>";
I only see the word 'array' where my checkbox array should be.


Messages In This Thread
Saving checkboxes - by El Forum - 12-19-2007, 10:10 AM
Saving checkboxes - by El Forum - 12-19-2007, 10:19 AM
Saving checkboxes - by El Forum - 12-19-2007, 11:34 AM
Saving checkboxes - by El Forum - 12-19-2007, 02:42 PM
Saving checkboxes - by El Forum - 12-19-2007, 04:36 PM
Saving checkboxes - by El Forum - 12-19-2007, 05:21 PM
Saving checkboxes - by El Forum - 12-19-2007, 05:24 PM
Saving checkboxes - by El Forum - 12-20-2007, 06:48 AM
Saving checkboxes - by El Forum - 12-21-2007, 08:00 AM
Saving checkboxes - by El Forum - 12-21-2007, 08:14 AM
Saving checkboxes - by El Forum - 12-21-2007, 02:27 PM
Saving checkboxes - by El Forum - 12-21-2007, 06:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB