//completely clear shopping cart
if (isset($GET["clear_cart"])) {
unset($SESSION["gids"]);
unset($_SESSION["counts"]);
}
//remove from cart product with productID == $remove
if (isset($GET["remove"]) && $GET["remove"] > 0) {
$i=0;
while ($i<count($SESSION["gids"]) && $SESSION["gids"][$i] != $GET ["remove"]) $i++;
if ($i<count($SESSION["gids"]))
$_SESSION["gids"][$i] = 0;
}
The thing is, I originally had the website on another server and it all worked fine so i'm guessing it's something to do with the php settings.
P.S. I'm not sure how to delete the other post as somone has replied!! Didn't even noticed i'd posted twice!