Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Write cookie with URL

    Not sure if its possible, but I need to write a cookie with a url.

    So this would write 2232 as the value for a cookie named ID.

    http://www.example.com/redirect.php?ID=2232

    Ultimately, I'm working on a pixel tracking script for an incentive website. If you can help, I'll be eternally grateful lol.

  • #2
    Regular Coder
    Join Date
    Mar 2006
    Posts
    238
    Thanks
    3
    Thanked 37 Times in 37 Posts
    If you send your ID via GET, then it would be in $_GET['ID']. You could simply use setcookie() at redirect.php to set the cookie ...

    If I have not understood the question properly, could you explain it a little bit please ...

  • #3
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,502
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    Do you really mean that you might want to place a 1 X 1 .gif pixel graphic on
    a page, and whenever that graphic is displayed (page refresh) it processes
    something using a PHP script?

    So there would not be a URL or "link" ... it all happens without the user knowing about it?

    In fact, you could write cookies, log things in a database, emails, etc. automatically,
    whenever the page was displayed or refreshed.

    Like SK, I'm thinking that we might not understand what you really want to do.

  • #4
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What I'm trying to do is create a pixel tracking script for website where users complete offers for cash.

  • #5
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,502
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    I guess I don't know what that is ... sorry.
    Maybe someone else has a good solution for you.


  •  

    Posting Permissions

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