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

[eluser]Juan Velandia[/eluser]
I think I did it:
view:

Code:
echo form_open('item/print');
foreach ($items as $item)
     {    
      echo form_checkbox(item_name[], $item->id_item );
      }
echo form_submit('submit', 'Submit selected items');
echo form_close();

controller:

Code:
$post = array();
$items = $_POST['item_name'];
foreach($items as $p)

  {
    $post[$p] =$p;
  }

print_r($post);
echo '<pre>';


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



Theme © iAndrew 2016 - Forum software by © MyBB