Is this possible the way I'm doing it? If so, does anyone know the proper syntax?
PHP Code:
if (isset($_GET['remove'])) {
$remove = $_GET['remove']; //value to be removed
}
if (in_array($remove, $_SESSION ['cart'])) { //check to see if value is in array
unset($_SESSION['cart'][$remove]); // Remove item from $_SESSION['cart'] array
}





Bookmarks