i am currently programming a shopping cart for my website, which can at the moment go one of two ways
1. everytime an item is added tot he cart, it adds the following variables " " image page url / Name " quantity Price + /N " to a variable which is written to the body of the shopping cart page using document.write, like this example
"image" lighter (as url) , 2 , $12
this means however users cannot edit shopping cart items once added to cart, nor can they change quantity
2. everything is placed in a cookie array, and is printed like this
var cookies +1
set array new item [ cookies] ; name ; quantity ; value
and thats that, however i do not know how to make such a long array , or how to make a string printed like that which's values can be read like that, made into a cookie. please help!