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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Sep 2007
    Posts
    137
    Thanks
    1
    Thanked 0 Times in 0 Posts

    question about tracking

    i have made a email newsletter sign up page and there is a php file that processes the information and inserts the information the user has entered in the form into a table.

    the php file is in linux server and the webpage is an asp page hosted on a cms system using microsoft

    using the php file that is in linux is it possible to track which page the user had clicked on the website before filling out the newsletter information as there are links in more than 1 page on the website from where the user can click and fill out the form.

    please advice if this can be done and if possible please provide the code.

    thanks.

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Look into the global variable $_SERVER['HTTP_REFERER'], which may fill your needs. However, as the manual mentions, it can't really be trusted.

    Much better would be to pass a value via the query string. That would require changing all the links though... and can be modified by the user. Though I'm not sure anyone would bother.

  • #3
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    You could also use centralized sessions, but that might be a bit overengineered depending on your situation.


  •  

    Posting Permissions

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