Hi Rohan:
Thanks for answering. I can see how to use http referer to capture where a user came from. Will this happen when they access the page I'm counting?
Let's say I have a web page called http://www.mypage.com. I want to count accesses to all pages within this website. How do I make my count program access "mypage"? Do I have to "hard-code" it in? Also, say "mypage" has over 100 pages. I'd hate to have to make an associative array with all these pages in it, like:
mypage/contact.html
mypage/guarantee.html
mypage/tutorial.html
etc. Then I'd have to go through the array each time, comparing where the user was to the array entries, incrementing by one if the entry is found. This seems a "brute-force" way to do things.
Is there a better way to do this? I tried using "http://www.mypage.com/" thinking the last "/" would pick up all pages in the web site that were clicked on, but it just picked up the main page!
Also, I was told that there is a difference between counting the links the user clicks on vs. what page the user is on. For a simple page, where all links go somewhere inside the website, this doesn't seem to make sense.
Thanks for any hints.
Best,
John Soares
mailto:johnsoares285@hotmail.com