Prevent multiple inserts when submitting a form in PHP
Sometimes the user may press Enter twice, and the post is inserted twice. Is there a solution to prevent this other than check if there is a...
https://iskablogs.blogspot.com/2014/04/prevent-multiple-inserts-when.html
Sometimes the user may press Enter twice, and the post is inserted twice.
Is there a solution to prevent this other than check if there is already a post with the same title and content?
Solutions:
1- Use JavaScript to stop it from sending
2 - disable the submit button once the user has submitted the form, using
JavaScript. That is what, for example
3 - Include a unique token on each POST
Is there a solution to prevent this other than check if there is already a post with the same title and content?
Solutions:
1- Use JavaScript to stop it from sending
2 - disable the submit button once the user has submitted the form, using
JavaScript. That is what, for example
3 - Include a unique token on each POST