我已经设置了一个搜索页面并且它正常工作,但是当我在浏览器中点击后面然后出现问题(如下所示),那我怎么能禁用它。
Confirm Form Resubmission
This webpage requires data that you entered earlier in order to be properly displayed. You can send this data again, but by doing so you will repeat any action this page previously performed. Press Reload to resend that data and display this page.
答案 0 :(得分:1)
在页面上处理POST后
example.com/mypage.php
使用
header('Location: example.com/mypage.php');
这样不会重新提交帖子,也不会从浏览器收到提醒。
答案 1 :(得分:0)
对Chrome使用命令行选项-disable-prompt-on-repost
。