Disable the button when it is clicked. (Just read your question properly and you stated that you didn't want that - oops.)
Preventing multiple submits
Is there a simple way to globally prevent multiple submits. (ie. if the user clicks the submit button really fast, like 7 times in 1 second).
I know I could disable the button after the first click with JavaScript. But I would prefer a more solid back end solution. I could maybe generate a token on each page load and check if that token has been submitted already, but that would be tedious to go back and do that to all my forms. Any ideas? Or am I missing something here.
I do it with simple JavaScript. I add a custom attribute to my HTML, like data-single-click, and then, behind the scenes, any buttons that have that attribute will immediately be disabled after the first click.
Please or to participate in this conversation.