Stop data inserting into a database twice - Stack Overflow - 0 views
-
Fabien Cadet on 16 Aug 09* HTTP `Location: ...´ header to redirect ; known as the Post/redirect/Get design pattern. * Nonces (Number used only once) included in the page as a hidden form field (client-side) ; and server-side: Either stored in the user-session or in the database as the primary key (or at least a unique field) of the table you insert into. * Disable the submit button (drawbacks for the user). * md5 hash on the content of the submitted data.