how do I insert an hidden token in my form to prevent double posts? (PHP)
- by jpjp
I want to prevent users from accidentally posting a comment twice.
I use the PRG (post redirect get) method, so that I insert the data on another page then redirect the user back to the page which shows the comment. This allows users to refresh as many times as they want. However this doesn't work when the user goes back and clicks submit again or…