Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Get certain data from $_POST from a dinamic form
#5

[eluser]CroNiX[/eluser]
so make your checkbox names an array,
Code:
<input type="checkbox" name="checkbox_array[<?php echo $item->id_item; ?>]" value="<?php echo $item->name_item; ?>" />

and then just use
Code:
$checkboxes = $this->input->post('checkbox_array');

foreach($checkboxes as $id => $value)
{
  $post[$id] = $value;
}
Or something similar...

PS - You shouldn't directly use the $_POST array... use input::post().


Messages In This Thread
[SOLVED] Get certain data from $_POST from a dinamic form - by El Forum - 10-17-2012, 12:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB