Hi All, I am inserting values into the database through a form. when I am pressing 'reload' button the values are again inserting in-to the database i do not want to do this please tell me what to do???? thanks
It is default behavior. By refreshing the page you are submitting the form again so After inserting values into db add a redirect on the page and show welcome message on third page or use querystring to show success message on same page Suppose you are inserting form values in db in save.php $result = mysql_query($query); header("Location: save.php?success=y"); // on the same page track if $success is equal to 'y' than show success msg. PHP: or redirect to a separate success screen page header("Location: success_msg.php"); PHP: