Results 1 to 3 of 3
  1. #1
    Affiliate Manager buyjewelry's Avatar
    Join Date
    January 18th, 2005
    Posts
    400
    Question capturing referring page and querystring info from a php tracking type script
    I am trying to get some information from a static html page by using a php script inside an image tag:

    blah.html:
    <html>
    blah blah blah <img src="imgredirect.php">
    blah blah
    </html>

    where the imgredirect.php script will redirect to an actual image after updating a database/writing some files with specific information. Everything is working fine - except certain information I can't seem to get:

    1) the referring page is always blah.html - not the actual site the visitor came from

    2) the querystring is always blank - not what was passed to the original html page

    some basic searching around led to some programs that can capture this information - but my needs are somewhat unique which prevents us from buying such software.

    Any recommendations?

  2. #2
    Moderator MichaelColey's Avatar
    Join Date
    January 18th, 2005
    Location
    Mansfield, TX
    Posts
    16,232
    I don't think it's possible from an image tag. The referring page will be the page on your site, not the original referring page.

    JavaScript is probably the best way.

    How difficult would it be to change that page from a static HTML page to a PHP page? You can configure your server so that it can still use the same .html extension. If you don't want to use JavaScript, that's the only other option I can think of.
    Michael Coley
    Amazing-Bargains.com
     Affiliate Tips | Merchant Best Practices | Affiliate Friendly? | Couponing | CPA Networks? | ABW Tips | Activating Affiliates
    "Education is the most powerful weapon which you can use to change the world." Nelson Mandela

  3. #3
    Affiliate Manager buyjewelry's Avatar
    Join Date
    January 18th, 2005
    Posts
    400
    Thanks Michael,

    I was afraid of that. Unfortunately, can't change it from a static html page - and can't do any configuration to the server. I'll do some research with javascript as per your suggestion. If you have any links bookmarked that you think I'll find useful, please send em my way.

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. How to do <a> tag type bookmarks in php?
    By Donuts in forum Programming / Datafeeds / Tools
    Replies: 5
    Last Post: December 13th, 2005, 02:22 PM
  2. How to do <a> tag type bookmarks in php?
    By Donuts in forum Programming / Datafeeds / Tools
    Replies: 3
    Last Post: December 13th, 2005, 01:04 PM
  3. newsletter script/capturing emails
    By oscar in forum Programming / Datafeeds / Tools
    Replies: 6
    Last Post: November 22nd, 2003, 03:02 PM
  4. Jump.php type code... help!
    By TJ in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: July 23rd, 2003, 04:45 PM

Posting Permissions

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