Bradley99 Posted June 28, 2012 Share Posted June 28, 2012 Hi, I have 2 forms on a single page, After any of the forms are submitted, I would like the user to be re-directed straight back to the page they came from. My URL for the page is a .php?viewevent=$viewevent I don't know if that changes anything, but whatever i try, i cannot seem to get it to work. Link to comment https://forums.phpfreaks.com/topic/264939-reload-page-after-php-form-submit/ Share on other sites More sharing options...
memfiss Posted June 28, 2012 Share Posted June 28, 2012 whats the problem ? if ($_SERVER['REQUEST_METHOD'] == 'POST') { #some actions ... header('location : ur_url'); exit(0); } Link to comment https://forums.phpfreaks.com/topic/264939-reload-page-after-php-form-submit/#findComment-1357691 Share on other sites More sharing options...
Bradley99 Posted June 28, 2012 Author Share Posted June 28, 2012 I just used META refresh INSIDE the echo from the submit. Thanks anyway. Link to comment https://forums.phpfreaks.com/topic/264939-reload-page-after-php-form-submit/#findComment-1357700 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.