hi, I want to find out if my users came from one particular url and keep that info (count the times somebody comes from that url) in a file or database.
can anyone tell me how I can do this in a simple way?
thanx
finding out where the user came from
Moderator: General Moderators
-
tylerdurden
- Forum Commoner
- Posts: 66
- Joined: Mon Jul 28, 2003 11:52 am
- Location: Austria
I've tried it from a link too, but it doesn't work either.
now I've tried someting else: on my page I've put the following:
$_SESSION["address"]="<script language='JavaScript'>document.write(document.referrer);</script>";
when I do echo $_SESSION["address"], it shows me the right url let's say "http://host/file.htm", but when I want to compare the string "http://host/file.htm" with $_SESSION["address"], it allways says false. I really don't know what to do
now I've tried someting else: on my page I've put the following:
$_SESSION["address"]="<script language='JavaScript'>document.write(document.referrer);</script>";
when I do echo $_SESSION["address"], it shows me the right url let's say "http://host/file.htm", but when I want to compare the string "http://host/file.htm" with $_SESSION["address"], it allways says false. I really don't know what to do
