SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict csj's Avatar
    Join Date
    Mar 2005
    Location
    South Africa
    Posts
    202
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [help] Must come from specific page?

    Is there anyway in PHP to determine if the user came from a specific page?

    So that if the user came from the right page (page1.php) then they get certain info and if they came from any other page they get an error message?

    Im sure I have seen this before. I would really appreciate any help with this!

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,807
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    PHP Code:
    if(basename($_SERVER['HTTP_REFERER']) != 'page1.php') {
    // redirect away

    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  3. #3
    SitePoint Addict csj's Avatar
    Join Date
    Mar 2005
    Location
    South Africa
    Posts
    202
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a million!

  4. #4
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,807
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    No problem
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....


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
  •