Thanks, but my problem still persists. Here is what I wan't to accomplish:
When I call the page (code included below), I wan't my orders to append to the $_SESSION['addorders'] array. Each time I call the page I lose the data I had previously. It overwrites instead of appending 🙁
I have the following code:
<?php
session_start();
foreach ($_GET as $key => $value)
{
if ($value != '')
{
$orders[$key] = $value;
}
}
$_SESSION['addorders'] = array();
$_SESSION['addorders'] = $_SESSION['addorders'] + $orders;
?>
If I use:
$_SESSION['addorders'] = array_merge( $_SESSION['addorders'], $orders );
the array keys get renumbered and then my associated array is broken, and the array still overwrites instead of appending.
Regards,
Firebird