Receive array values

1

How do I get the values for this checkbox?

<input type="checkbox" name="Item[<?php echo $IDCatalogo; ?>][<?php echo $IDItem; ?>]">

foreach( $_POST['Item'] as $key => $n ) {
                print "<p>".$n." | ".$key."</p>";
}
    
asked by anonymous 19.09.2015 / 20:39

1 answer

2
foreach( $_POST['Item']['IDCatalogo']['IDItem'] as $key => $n ) {
            print "<p>".$n." | ".$key."</p>";
}

Hope you can help.

    
20.09.2015 / 00:50