Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I prevent this?
#6
(10-06-2010, 09:00 PM)Disease Wrote: You should be redirecting your users away from the form after it has been validated and executed. Doing so will mean that if your user decides to spam the refresh button they'll be doing so on a safe page. How it might look in pseudocode:

Code:
if form submitted then
  validate form

  if form validates successfully then
    redirect user

Hey, that would work pretty nicely. But that would mean that each submissApproachion would require its own success page, and if done half-assed (like most of my scripts) it can get messy real quick
[Image: TYzKF.png]
Reply


Messages In This Thread
How can I prevent this? - by `P R O D I G Y™ - 08-25-2010, 02:52 AM
RE: How can I prevent this? - by Starky - 08-25-2010, 04:12 AM
RE: How can I prevent this? - by Orgy - 10-06-2010, 01:55 PM
RE: How can I prevent this? - by Disease - 10-06-2010, 09:00 PM
RE: How can I prevent this? - by Orgy - 11-30-2010, 02:01 PM
RE: How can I prevent this? - by Win - 11-26-2010, 02:33 PM
RE: How can I prevent this? - by iCrack - 11-30-2010, 02:47 PM
RE: How can I prevent this? - by Orgy - 12-01-2010, 06:54 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Guide] Security: Prevent SQLi and XSS Attacks Haxalot 8 3,199 06-25-2015, 11:08 AM
Last Post: ParagonInitiative

Forum Jump:


Users browsing this thread: 2 Guest(s)