hi, thanks for all your help but i still cant get it working... here is what i have
Here is the add item to session - this works and the cart displays the contents
<?php
session_start();
if (count($_SESSION["cart"]) < 1) {
$_SESSION["cart"] = array();
}
$_SESSION["cart"][] = $_POST["itemid"];
header("location:cart.php");
?>
the carts remove item button
<form id="id" name="id" method="post" action="/remove_item.php">
<input name="id" type="hidden" id="id" value="<? echo $info['id']; ?>" />
<input name="Submit" type="submit" class="formbox" value="Remove" />
</form>
Then the php script that it posts to is...
<?php
$_SESSION['cart'][] = $itemid;
$id=$_POST['id'];
unset($_SESSION['cart'][$id]);
header("location:cart.php");
?>
though no error is displayed and the script is receiving the id from the form???