ok...
i have items stored in an array in a session.
if ( !isset( $_SESSION["cart"] ) ) {
$_SESSION["cart"] = array();
}
$id = $_POST["id"];
$_SESSION["cart"][] = $id;
so when the session is looped is it possible to put the [xnumber] into this..
<form id="id" name="id" method="post" action="/cart/remove_item.php">
<input type="image" src="/images/x2.gif" alt="Remove This Item">
<input name="id" type="hidden" id="id" value="<?php echo $xnumber ; ?>" />
</form>
which is sent to this...
$id=$POST['xnumber'];
unset($SESSION['cart'][$id]);