35067-vm/remove_from_cart.php
Flatlogic Bot b200618254 eco-grow
2025-10-20 06:45:18 +00:00

13 lines
219 B
PHP

<?php
session_start();
if (isset($_GET['id'])) {
$productId = $_GET['id'];
if (isset($_SESSION['cart'][$productId])) {
unset($_SESSION['cart'][$productId]);
}
}
header('Location: cart.php');
exit;