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

PHP中文网
Release: 2023-03-01 06:58:01
Original
2267 people have browsed it

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>";
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template