...

View Full Version : Cookies - personalise info



deathmill
07-17-2003, 02:11 PM
Hi, im kinda new with cookies and im trying to get my head around personalising a page, and I was wondering if anyone knew of any sites or code example at hand. Iv done some searching around and found things like cookie name, address, bgcolour but nothing really like this.

Example of what I want to do:

3 Checkboxes: Men, Women, Pets

If checkbox pets checked, click update to save cookie and display a image called pets.

If checkbox women checked, click update to save cookie and display a image called women.

If checkbox pets unchecked, click update to remove cookie and remove image called pets.

I know this could easily be done with if else statment, allot of them from what Iv played with and its looks horrid. Also I would guess you'd write a cookie for each option. Im confused :rolleyes:

Thanks in advance for help

D

glenngv
07-18-2003, 07:26 AM
there are tons of javascript cookie scripts (http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=javascript+cookie+script) found in the net. The common cookie script allows you to set/read a cookie given the name. With that, you can implement it in any page that uses cookie like the way you wanted it.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum