in reply to Re^2: (CGI) Prevent a reload from resubmitting a form
in thread (CGI) Prevent a reload from resubmitting a form
Your token tracking does not really prevent a user from 'RELOAD' either. I can just randomly make up a token value and resubmit the same data again and again because you are only validating whether that token has already been submitted.
You will always to validate your data on the back-end regardless because someone can ALWAYS submit data against your script with random inputs.
Your original question was how do I prevent a user from pressing the button quickly and getting an accidental reload, well JavaScript can allow you to do this, as well as a Modal (look up jquery SimpleModal).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: (CGI) Prevent a reload from resubmitting a form
by mzedeler (Pilgrim) on Jun 27, 2009 at 19:13 UTC | |
|
Re^4: (CGI) Prevent a reload from resubmitting a form
by fmk (Acolyte) on Jun 27, 2009 at 19:32 UTC | |
by mzedeler (Pilgrim) on Jun 27, 2009 at 20:06 UTC |