Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2002
    Thanked 0 Times in 0 Posts

    Cookies - personalise info

    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

    Thanks in advance for help


  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Thanked 256 Times in 252 Posts
    there are tons of javascript cookie scripts 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.

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts