Thread: Referrer URL

    #1
  1. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Cape Town, South Africa
    Posts
    18
    Rep Power
    0
    Hi Everyone

    I'll make this short and sweet. I'm looking for some sort of function or variable in PHP that will allow me to return to the referring page, if I put it into an <a href> tag. I can think of one way of coding around the problem, but I would prefer to do it properly. I'm just curious: Is there such a thing as $REFERRER_URL variable or am I just imagining things? If there is, how would I go about using it?

    Thanks for your help,
    Warren Rohner
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    $HTTP_REFERER

    Note the spelling above is correct (no double r)

Similar Threads

  1. Change ip url to domain
    By crypt1c_c0d3 in forum Apache Development
    Replies: 2
    Last Post: January 2nd, 2004, 09:55 AM
  2. page access via referrer
    By gkg1 in forum PHP Development
    Replies: 0
    Last Post: November 9th, 2003, 12:22 AM
  3. Issue with URL address using LWP
    By usaindp1776 in forum Perl Programming
    Replies: 4
    Last Post: September 3rd, 2003, 07:51 PM
  4. mod_rewrite and current URL
    By mikix in forum Apache Development
    Replies: 1
    Last Post: August 4th, 2003, 09:29 PM
  5. Need help: redirect to page based on text in URL
    By JPElectron in forum HTML Programming
    Replies: 2
    Last Post: July 18th, 2003, 11:44 PM

IMN logo majestic logo threadwatch logo seochat tools logo