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? >_< Link to comment https://forums.phpfreaks.com/topic/227972-how-to-remove-the-refresh-confirmation/ 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'); Link to comment https://forums.phpfreaks.com/topic/227972-how-to-remove-the-refresh-confirmation/#findComment-1175579 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.