Hi
I do it using sessions with:

//Check for a reload
$hash = mhash(MHASH_SHA1,serialize($HTTP_POST_VARS));
$hash = bin2hex($hash);
if($hash == $Hash):
         $reload = "Yes";
         echo "reload <br>";
endif;

$Hash is registered in the session.
Tom


At 02:54 AM 31/03/01 +0100, David Hynes wrote:
>Does anyone know of a way to stop the user from refreshing a page several
>times.
>
>i.e if I add a value to a database using a form and PHP, I don't want the
>user to be able to simply press refresh and add the value to the database
>again.
>
>Please help,
>Dvaid.
>
>-----------------------
>Fed202 Solutions
>www.fed202solutions.com
>Mobile : 07779 293368
>-----------------------
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to