View Single Post
Old 03-22-2004, 06:52 PM  
JamesDotCom
Registered User
 
Join Date: Mar 2004
Location: UK
Posts: 35
Not sure exactly what you are trying to achieve but it may be something like this. You have many different pages pointing one place and want to see where the hits are coming from? If so, this example might give you a rough idea.

Many pages:

<a href="http://this.is.my/single/page.php?referrer=here">Link 1</a>

<a href="http://this.is.my/single/page.php?referrer=there">Link 1</a>


The one page:

<pre>
&lt;?php
if ($_GET["referrer"])
{
echo "Referrer: ".$_GET["referrer"];
}
else
{
echo "Came without a referral";
}
?>
</pre>
Normally from within the if statement you would store the value in a database etc for future reference. Let me know if you need anymore help.

JamesDotCom is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote