Re: [PHP] How to check for refresh in PHP

2003-01-31 Thread adrian [EMAIL PROTECTED]
Subject: [PHP] How to check for refresh in PHP Hi, I have a news site where i want to track how many visits or reads each individual news has. I have a main list with all the titles, then clicking on them shows the details of the specific news, only then the counter for that particular news

[PHP] How to check for refresh in PHP

2003-01-30 Thread Pag
Hi, I have a news site where i want to track how many visits or reads each individual news has. I have a main list with all the titles, then clicking on them shows the details of the specific news, only then the counter for that particular news is increased. The problem is, if the user

Re: [PHP] How to check for refresh in PHP

2003-01-30 Thread Justin French
Not really that simple. You can't use the HTTP_REFERER, because it's not set when the user refreshes (at least on my browser, so at best it will be unreliable). Common ways to prevent such things happening (like voting for a pic or song or poll more than once) are usually done with either: 1.