Forum Moderators: coopster
$_SESSION['id'] = $_GET['id']; $array = array(
'model' => $_SESSION['model'],
'qty' => $_SESSION['qty'],
'id' => $_SESSION['id'],
); $other_array = Array(
"ID" => $array,
); <?php
// Let it decide it's own key.
// First submission has key 0
// Next has key 1 etc..
// print_r($other_array[1]);
$other_array[] = $array;
// Or you can use something posted in the form
$other_array[$_GET['id']] = $array;
?>