How does PHP solve the problem of repeated submission of forms when refreshing the page?? What needs to be done? ?
How does PHP solve the problem of repeated submission of forms when refreshing the page?? What needs to be done? ?
commit id
Add a hash to judge
Use session to generate a hash value when rendering the page, and then submit the hash value for comparison when submitting. If it is inconsistent, it will be submitted again.
checkToken
Just add version control. It is a very simple function. For example, many java frameworks provide it, and big php also has it, such as the yii2 framework