I'm writing a shopping cart, and I'm stuck. I'm trying to append new orders to recently added orders using sessions.
From one page I have a price list where the user can press "Add to Cart", it posts via hidden input where "name=item[]" and "value=$product_id"
The above posts to an iframe page (the cart) in which I want to append to the item to the previously stored session variable
$_SESSION["storeditems"] = $item;
somewhere at the end i'd get the results of the array.
if ($item) {
for ($i = 0; $i < count($item); $i++) {
if (isset($item[$i])) {
}
So, any ideas as to how you would keep a running list of what items were added, using sessions?
I know it's probably pretty simple.. thx for any help.