Friday, 3 April 2015

php back button confirm form resubmission

If you are able to see confirm form re-submission message when hit the back button then write the following code on the page header, That will solve the issues.

<?php
header("Expires: Mon, 26 Jul 2010 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header('Cache-Control: max-age=900');
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>

No comments:

Post a Comment

Thanks for your comments.