Thread: Referer

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

    Join Date
    Jun 2000
    Posts
    23
    Rep Power
    0
    Anyone who knows how to check the referer?
    For example, if the previous page is abc.htm then proceed to the redirection to special.htm if the previous page is not, then display a message on the document.

    ------------------
    C.K.C.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Alkmaar, The Netherlands
    Posts
    123
    Rep Power
    15
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by CKC:
    Anyone who knows how to check the referer?
    For example, if the previous page is abc.htm then proceed to the redirection to special.htm if the previous page is not, then display a message on the document.
    [/quote]

    Use the $HTTP_REFERER variable, This gives the complete URL of the location origin of the users request.

    ------------------
    Good luck,
    Bas

    ------------------
    E-mail me at: b.vandermeijden@pecoma.nl

Similar Threads

  1. parse through the url of the referer
    By grungefade in forum PHP Development
    Replies: 2
    Last Post: December 30th, 2003, 04:13 PM
  2. setting http referer question
    By gkg1 in forum PHP Development
    Replies: 0
    Last Post: November 10th, 2003, 12:38 AM
  3. redirect if referer is unequal to homepage?
    By Mikk in forum HTML Programming
    Replies: 9
    Last Post: August 2nd, 2003, 09:52 AM
  4. Passing SESSION referer, I'm losing it :/
    By Inpresif in forum PHP Development
    Replies: 12
    Last Post: June 5th, 2003, 07:13 AM
  5. Finding referer in PHP
    By munkfish in forum PHP Development
    Replies: 7
    Last Post: October 7th, 2001, 07:00 AM

IMN logo majestic logo threadwatch logo seochat tools logo