Possible Duplicate:
Avoid resending forms on php pages
Index.html
<form method="post" action="demo.php">
<input type="text" name="fname"/>
<input type="text" name="lname"/>
</form>
demo.php
<?php
$firstname = $_POST['fname'];
$lastname = $_POST['lname'];
//some more php code to fill the webpage
?>
So the user enter his first name and last name and submits the form and then demo.php does its job and its working fine, but when I press F5 or refresh demo.php the next time I get this pop up from the browser
// this message is from google chrome
the page that you're looking used information that you entered.
Returning to that page might cause any action to be repeated.
Do you want to continute?
// this message is from IE 7 or 8
To display the webpage again,Internet Explorer needs to resend information
you've previously submitted. If you were making a purchase,
you should click cancel to avoid duplicate transaction,else click retry.
Why do I get this? I want to just refresh the page. I don't want that message to be popped out from the browser. Just refresh the page according to previously submitted values because its creating duplicate values in my database.