Re: No-refresh

From: Date: Mon, 02 Apr 2001 01:55:31 +0000
Subject: Re: No-refresh
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-46540@lists.php.net to get a copy of this message
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: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#46540) next »