hey,

i'm designing a small shopping cart w/ cookies where the cookie is used as
an array (the array id being the product id) and the array value being the
number of items selected.  anyways, for the most part everything works fine,
but with certain items if they're added to the cart, they get added, but
unfortunately do not display in the cart until a few other items are added
(the quantity of that product continues to increase regardless of whether or
not it's shown in the cart).  i have absolutely no idea why this is
happening, and feel like i've tried most things that have come to mind.  my
cookie is being set like:

if (!isset($cookie[0])) setcookie("cookie[0]", "0");

i do not have a product w/ id of zero (0), so i use that as the default id /
value to set the cookie with.  any suggestions _at_all_ would be
appreciated.  :)

thanks,
matt




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to