Re: [PHP] No-refresh

2001-04-01 Thread trogers
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 "; endif; $Hash is registered in the session. Tom At 02:54 AM 31/03/01 +0100, David Hynes wrote

RE: [PHP] No-refresh

2001-03-30 Thread Greg Donald
> 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. Many methods exist,

Re: [PHP] No-refresh

2001-03-30 Thread Jack Dempsey
check the archives...you can use javascript or perform a check off the data to be inserted to see if its already there... -jack 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,