SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict mh8759's Avatar
    Join Date
    Jun 2000
    Location
    Slovenia, Europe
    Posts
    205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm trying to write PHP cookie code to set cookie on my visitor's computer with 6 URLs in it. The program should check for cookie and if it doesn't exist, set a new one with default URLS. User could then change the default URLS through form on my site. That's the next step which I could probably figure it out by myself, but now I don't even know how or where to start. I'd like to set a cookie first, then bother with other options.
    Does anyone have the code already written?

    Thank you in advance
    Mare

  2. #2
    SitePoint Enthusiast
    Join Date
    Oct 2000
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Did u check http://php.net/manual/function.setcookie.php ?
    if not surf there.
    Great Dane
    Gokhan ARLI

  3. #3
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, http://www.php.net is the BEST reference point that every php programmer/learner should know!
    My book is just for basic concept, all method is pretty much explained at php.net!
    - Son Nguyen
    AdSpeed.com - Ad Serving and Ad Management Made Easy


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
  •