hkothari Posted October 18, 2009 Share Posted October 18, 2009 I have a form posting to PHP_SELF and it works fine, but the problem I have is that when someone refreshes the page after doing something, it reposts the form, doing it again. Is there an easy way to prevent this from happening? Link to comment https://forums.phpfreaks.com/topic/178123-refresh-reposts-form/ Share on other sites More sharing options...
mrMarcus Posted October 18, 2009 Share Posted October 18, 2009 yes. upon processing of the form, redirect back to the form/success page (whatever), using header() .. this will eliminate your problem. Link to comment https://forums.phpfreaks.com/topic/178123-refresh-reposts-form/#findComment-939148 Share on other sites More sharing options...
hkothari Posted October 18, 2009 Author Share Posted October 18, 2009 If I want them to be on the same page, can I do a header redirect to the same page? And thank you. Link to comment https://forums.phpfreaks.com/topic/178123-refresh-reposts-form/#findComment-939151 Share on other sites More sharing options...
mrMarcus Posted October 18, 2009 Share Posted October 18, 2009 of course. Link to comment https://forums.phpfreaks.com/topic/178123-refresh-reposts-form/#findComment-939152 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.