SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: cookie help

Hybrid View

  1. #1
    SitePoint Zealot Chameleon's Avatar
    Join Date
    Oct 2004
    Location
    Arizona
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    cookie help

    I'm making a site and the defult nav is in flash but under "Accessibility" visitors/clients will find the option to turn all flash off and just have a html version nav. If they choose the html version how could I get there settings to be remembered next time they visit? I'm new to php so i'm sorry if this is very basic.

    Thanks!!

  2. #2
    SitePoint Enthusiast Redprince's Avatar
    Join Date
    May 2004
    Location
    Salzgitter, Lower Saxony, Germany
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use setcookie() to set a cookie. You should handle this data with the array $_COOKIE. See www.php.net/setcookie

  3. #3
    SitePoint Wizard mark_W's Avatar
    Join Date
    Mar 2004
    Location
    West Midlands, United Kingdom
    Posts
    2,631
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you also use a MySQL database you could add it there.

    So, where you have your users table you could have a field called nav_type

    It could have a value of 0(Flash) or 1(Html)

    Mark.


Bookmarks

Posting Permissions

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