View Full Version : Is there a way to prevent queries from submitting again on a reload?
Magic2K2
July 30th, 2001, 15:38
I cannot allow people to reload a page and submit their query again as if it were an INSERT or UPDATE it would throw my database all out of wack. Is there an easy way to do this w/o having to use code to check in every PHP script I want to protect against this?
lucifer
July 30th, 2001, 16:28
you'll need to do something at the server end to stop re-submissions.
or do you mean when people refresh the 'results' page that that is resubmitting. If that's the case use a redirect like on this forum.
Jome
July 30th, 2001, 17:06
You could make it a hard way, generate a big random number and than make the script ignore a submission of an already handled number.. this may not be a great sollution, but it's a possible one tho.
Jome
Magic2K2
July 31st, 2001, 07:19
Originally posted by Jome
You could make it a hard way, generate a big random number and than make the script ignore a submission of an already handled number.. this may not be a great sollution, but it's a possible one tho.
Jome
I like that. I'll see if I can get that to work.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.