#1
  1. nx
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2003
    Location
    USA
    Posts
    626
    Rep Power
    0

    sessions and css


    i have a selection list where you can select from 4 different styles to display the page in. the script is run by javascript whereas when you select the style you want, it loads the associated .css file replacing the <link> tag's href with the new one. how can i use sessions(or cookies) to make it so when they leave and revisit my site, their preferences are saved and load automatically?

    thanx alot
  2. #2
  3. No Profile Picture
    Just a kid
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Location
    Canada
    Posts
    105
    Rep Power
    13
    http://php.net/cookies

    have a look there.
    [ lavacube ]

    My Personal Site[greyDistortion]

    PHP version: 4.3.8
    MySQL version: 4.0.21
    Operating System (OS): SuSE Linux 9.1
    Apache version: 2.0.50
  4. #3
  5. nx
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2003
    Location
    USA
    Posts
    626
    Rep Power
    0
    but how do i implement my javascript return values into the cookie?
  6. #4
  7. No Profile Picture
    Just a kid
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Location
    Canada
    Posts
    105
    Rep Power
    13
    Go post in the JavaScript section then.
    [ lavacube ]

    My Personal Site[greyDistortion]

    PHP version: 4.3.8
    MySQL version: 4.0.21
    Operating System (OS): SuSE Linux 9.1
    Apache version: 2.0.50
  8. #5
  9. nx
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2003
    Location
    USA
    Posts
    626
    Rep Power
    0
    ok....but the thing is, i want to use php to do so...
  10. #6
  11. No Profile Picture
    Just a kid
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Location
    Canada
    Posts
    105
    Rep Power
    13
    http://php.net/cookies

    have a look there, again.
    [ lavacube ]

    My Personal Site[greyDistortion]

    PHP version: 4.3.8
    MySQL version: 4.0.21
    Operating System (OS): SuSE Linux 9.1
    Apache version: 2.0.50
  12. #7
  13. nx
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2003
    Location
    USA
    Posts
    626
    Rep Power
    0
    okok.....

IMN logo majestic logo threadwatch logo seochat tools logo