calmchess Posted July 8, 2007 Share Posted July 8, 2007 How do I stop firefox from reposting post data when my php page is refreshed? Link to comment https://forums.phpfreaks.com/topic/58965-firefox-resubmits-data-on-page-refresh/ Share on other sites More sharing options...
metrostars Posted July 8, 2007 Share Posted July 8, 2007 Don't know if you can, but what I usually do when you insert data using POST, is to redirect using header(). That way, you can't refresh on that page as it redirects after the script is complete and if you click back, you're taken to the page where the form is. I find that's the easiest way around it. Link to comment https://forums.phpfreaks.com/topic/58965-firefox-resubmits-data-on-page-refresh/#findComment-292620 Share on other sites More sharing options...
NArc0t1c Posted July 8, 2007 Share Posted July 8, 2007 Sessions. create session on submit, if session is greater than one, exit; Link to comment https://forums.phpfreaks.com/topic/58965-firefox-resubmits-data-on-page-refresh/#findComment-292644 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.