Home > Article > Backend Development > PHP refresh pops up a pop-up box to resubmit the form
Problem: On the PHP form page, the form has been submitted, and the pop-up box for resubmitting the form will continue to pop up after refreshing. If I click Continue, there will be two duplicate records in the database.
Solution: After
post, manually add the refresh code, as follows:
echo "<script>location.reload()</script>";
The above introduces the PHP refresh pop-up pop-up to resubmit the form, including the relevant content, please pay attention to more related content PHP Chinese website (www.php.cn)!