cho92526 Posted February 17, 2011 Share Posted February 17, 2011 I'm making a registration page, but when I refresh the webpage, it asks for confirmation on sending the data again. How do I remove this? >_< Quote Link to comment Share on other sites More sharing options...
silkfire Posted February 17, 2011 Share Posted February 17, 2011 Very simple: Check if $_POST is empty, if it's not - redirect to the current page. This wipes all post data but is very seamless for the user. if (!empty($_POST)) header('Location: index.php'); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.