SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: HTTP_REFERER

  1. #1
    SitePoint Addict Brian Asselin's Avatar
    Join Date
    Oct 2000
    Location
    New hampshire
    Posts
    202
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I didn't really know where else to put this, but maybe this'll do.
    Is thier any way to have HTTP_REFERER in a child window, refer to the
    parent window? Here what I'm doing : I'm setting up a "Suggest this
    page to a friend" thing, I've got the script all setup, it opens in a
    window opened with javascript, and always shows the script as the
    referer, not the page the window was opened from. Any Ideas?

  2. #2
    Serial Publisher silver trophy aspen's Avatar
    Join Date
    Aug 1999
    Location
    East Lansing, MI USA
    Posts
    12,937
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HTTP_REFERER is a variable defined by the server. I have no idea how to falsify it, without just plain overriding it, which is what you want to do, so I'm willing to bet you'll have a hard time trying to do so. You may want to think of a different solution.

  3. #3
    SitePoint Addict Brian Asselin's Avatar
    Join Date
    Oct 2000
    Location
    New hampshire
    Posts
    202
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by aspen
    HTTP_REFERER is a variable defined by the server. I have no idea how to falsify it, without just plain overriding it, which is what you want to do, so I'm willing to bet you'll have a hard time trying to do so. You may want to think of a different solution.
    I gave up and took it out of the pop up window, it works fine now, thanks anyway.

  4. #4
    SitePoint Enthusiast
    Join Date
    Oct 2000
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    why dont you put it in your querystring when popping up?
    refer.php?url=mydomain.com/pictures/index.html
    or better way is just cover it in a form
    <form action=refer.php TARGET=_BLANK>
    <INPUT TYPE=HIDDEN NAME=url VALUE="......">
    <submit button here>
    </form>
    Great Dane
    Gokhan ARLI


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
  •