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

2003-01-31 Thread adrian [EMAIL PROTECTED]
a real simple thing i do is to increment the counter then use header() to redirect to same page with a variable added. so at the top of details.php i put.. if(!$_GET['no_count']){ ...increment counter header("location:...details.php?no_count=on"); exit; } of course people can always just manually

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. lo