Is there a way to do the above? Basically, I don\'t want the form to be submitted again if someone presses refresh after already submitting the form once. In which case the
Use an intermediate page to do the operations and then redirect.
For example:
mypage.php --> the page with the form
dostuff.php --> receives the form data and makes operations, then redirects to any other page.
To do a redirect:
Put this line on the top of "dostuff.php": header("Location: mypage.php");