Home  >  Article  >  Backend Development  >  提交表单,刷新父页面时,老弹出对话框,该如何处理

提交表单,刷新父页面时,老弹出对话框,该如何处理

WBOY
WBOYOriginal
2016-06-13 13:46:361021browse

提交表单,刷新父页面时,老弹出对话框
在父页面a.php点击个链接到b.php修改数据
b.php修改完后提交数据,
a.php同时刷新页面。

每次刷新都会弹出个对话框”
“要再次显示该网页,Internet Explorer需要重新发送您以前提交的信息。。。”
有什么方法能把这个对话框去掉啊?

a.php

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><a href="eqInBuyUpdate.php?mid='.%24row%5B'MIS_id'%5D.'" target="_blank">链接</a>

b.php
PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->mysql_query($sqlInstorage);
    echo '<script>alert("修改成功");window.opener = null; //for Ie6
    window.open("","_self");  //for ie7-8 
    window.close();reload();</script>';

看了网上的一些方法都没用啊。。。求高手指教!谢谢

------解决方案--------------------
mysql_query($sqlInstorage);
echo '<script>alert("修改成功");window.opener = null; //for Ie6<br /> <br /><font color='#e78608'>------解决方案--------------------<br />提交后再disabled表单的提交按钮 <br /><font color='#e78608'>------解决方案--------------------<br />或者不要刷新,只需要在提交后window.location.href(会自动刷新父页面) 如果用history.back()则不刷新父页面 <br /><font color='#e78608'>------解决方案--------------------<br /><fieldset><legend>探讨<br /><br />刷新比较好<br />没人知道吗<br /> <div class="clear"> </script>
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