2

I have set a search page and it's working properly, But when i click on back in browser then the problem(mention below) appears, So how can i can i disable this.

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.

2 Answers2

1

After processing POST on your page

example.com/mypage.php

use

header('Location: example.com/mypage.php');

In this way the post will not be resubmitted and you wont get the alert from browser.

Meer
  • 1,006
  • 10
  • 15
-1

Use the command line option -disable-prompt-on-repost for Chrome.

pgl
  • 7,551
  • 2
  • 23
  • 31