Jump to content

Need help detecting where a user is coming from


$Three3

Recommended Posts

Hi, I have a slight problem that I have come across when coding for one of my sites. I need to know whether or not a user is coming from a specific address. For example: In order for a user to complete registration for the site, they must come from this url: https://www.somesite.com/cgi/secure?87584

 

Is there anyway of detecting where a user is coming from? I am almost done with my site but I have been stuck on this for a few days now. Any help is greatly appreciated and thanks in advanced for the help also.

Link to comment
Share on other sites

check this code..

<?PHP

FUNCTION getCurrentPage() {
        $thedomain .= "http://";
     $thedomain .= $_SERVER['HTTP_HOST'];
     $thedomain .= $_SERVER['REQUEST_URI'];
     RETURN $thedomain ;
}

ECHO "The current URL is: ".getCurrentPage()."!";

?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.