algalogica - 1:42 am on Mar 1, 2013 (gmt 0)
I have some values that I am getting from a form users fill out. I am grabbing these values and storing them into sessions like so
$_SESSION['id'] = $_GET['id'];
Next, I'm storing those sessions into an array, like this
$array = array(
'model' => $_SESSION['model'],
'qty' => $_SESSION['qty'],
'id' => $_SESSION['id'],
I'm then trying to store that array, in another array. Like this
$other_array = Array(
"ID" => $array,
This works for the values that I submit from the form the first time around. When I submit different values from the same form I want it to create another array using the GET values and then store that in my $other_array.
Currently, it just replaces the first array that is added.
How can I get it to add another array rather than replacing it?