Home  >  Article  >  Backend Development  >  PHP refresh pops up a pop-up box to resubmit the form

PHP refresh pops up a pop-up box to resubmit the form

PHP中文网
PHP中文网Original
2017-03-30 17:04:592262browse

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)!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:thinkphp+PHPExcel importNext article:thinkphp+PHPExcel import