I'm wanting to add a value to a session via GET. I'm doing it this way but it does not work.
function addCart($product){
$cart['cart'][$product] = 0;
$_SESSION[] = $cart;
}
I'm wanting to add a value to a session via GET. I'm doing it this way but it does not work.
function addCart($product){
$cart['cart'][$product] = 0;
$_SESSION[] = $cart;
}