Hello, this may be a retarded question but I have a site with image galleries. I want to have a ‘add to favorites’ link that will set a cookie on the user’s computer.
So if I hit tom’s gallery, and hit add to fav, it would put the galleryID into the cookie. If I then go to steve’s gallery and do the same, it add it to the cookie, instead of over riding it. Then I can show them a list of all the galleries in there favorites by looping through the info in the cookie. Is this possible? Up till now I have only used single item data for cookies. Normally I would just use a database table for this but since the visitor does not login to view galleries, I just wasnted them to be able to do this.
I am using the set_cookie() in php.
[CODE]setcookie(‘galleryfavs’,$_GET[“fav”],time()+60*60*24*30,’/’,’mysite.net’);
thanks for any help or clarity on this matter.