When you submit a form and refresh the parent page, the old pop-up dialog box appears.-php Tutorial

Source: Internet
Author: User
Submit the form. when the parent page is refreshed, the old pop-up dialog box is displayed on the parent page. php click a link to B. php modifies data B. submit data after php modification.. php refreshes the page at the same time. Each time you refresh the page, a dialog box is displayed. "to display the page again, InternetExplorer needs to resend the information you submitted previously ..." Is there any way to remove this dialog box? A. phpPHPcode & lt; ahref & quot; eqInBu submit the form. when the parent page is refreshed, the old dialog box is displayed.
On the parent page, click a link to B. php to modify data.
B. submit data after php modification,
A. php refreshes the page at the same time.

A dialog box is displayed for each refresh"
"To display the web page again, Internet Explorer needs to resend the information you submitted previously ..."
Is there any way to remove this dialog box?

A. php
PHP code
  Link

B. php
PHP code
  Mysql_query ($ sqlInstorage); echo 'script alert ("modified successfully"); window. opener = null; // for Ie6 window. open ("", "_ self"); // for ie7-8 window. close (); reload (); script ';

Some methods on the Internet are useless... Please advise! Thank you.

------ Solution --------------------
Mysql_query ($ sqlInstorage );
Echo 'script alert ("modified successfully"); window. opener = null; // for Ie6

------ Solution --------------------
The submit button of the disabled form after submission
------ Solution --------------------
Or do not refresh. you only need to refresh the parent page after submitting window. location. href (the parent page is automatically refreshed). If history. back () is used, the parent page is not refreshed.
------ Solution --------------------
Discussion

Better refresh
Nobody knows?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.