Hide Confirm Form Resubmission PHP

307 Views Asked by At

After I submit a form, and I click the back button, the page displays the confirm form resubmission page. Instead of that, I actually just want the browser to display the form itself. It there a way to do that? Here is a part of my code below, and it works except that it will not stop refreshing. I just want it to refresh once when you click the back button.

<meta http-equiv="refresh" content="0">
<form method = 'post' action = 'submitPost.php?section=$section'>
<textarea rows='10' cols='100' name = 'post'></textarea> </br>
<input type = 'submit' value = 'Submit'>
</form>
1

There are 1 best solutions below

2
On BEST ANSWER

This is a browser security policy - when you want to go back to a page you loaded using the POST http verb it will always ask you for confirmation.