foreach ($_SESSION["cart_array"] as $item) {
if ($item==$_GET["item_id"]) {unset($_SESSION["cart_array"], $item); break;}
}
But it removes ALL items from the cart. And then when I view the cart on the next page, EVERYTHING is back, including the item I tried to remove. What am I doing wrong? Thanks!
- Brian
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php