Here is my code
if (!isset($quantity)){
die("<body bgcolor='FF0000'><font face=verdana color='FFFFFF'>You have no items in your shopping cart.");
}
$string1 = $quantity . "x " . $size . " " . $item;
if (!isset($cookie_cart)){
$cookie_cart = array();
}
$cookie_cart[] = $string1;
setcookie("cookie_cart", $cookie_cart, time()+1800);
I get an error where it says $cookie_cart[]... The error says that I cannot perform '[]' on strings. This makes no sence to me, because it is set as an array the first time through, then store in a cookie. Can anybody help me with this code? Thanks.