Re: PHP method to prevent form repeat submission
users may submit the form of the form, or the web is maliciously refreshed, causing the same record to be repeatedly inserted into the database, which is a more difficult problem. We can start from the client side and the server side, trying to avoid duplication of the same form.
1. uses client-side script
to refer to client script, often using JavaScript for routine input validation. In the following example, we use it to handle duplicate submission of forms, see the following code:
[code]