if (isset($_GET['add']) && isset($_GET['price']) && isset($_GET['qty'])){
$ITEM = array(
//Item name
'name' => $_GET['add'],
//Item Price
'price' => $_GET['price'],
//Qty wanted of item
'qty' => $_GET['qty']
);
$_SESSION['SHOPPING_CART'][] = $ITEM;
刷新页面时将商品添加到购物车中。任何人帮助如何删除 url 变量?