csimms Posted September 30, 2006 Share Posted September 30, 2006 I got a process.php that does the processing to email the data from my form, although I need to redirect the enduser to a thank you page once they click on the submit button from the form page.How do I redirect to a new page once the submit button is clicked.. I know the code needs to be on the process page, but have no idea what it is.thanks for your help Link to comment https://forums.phpfreaks.com/topic/22608-processing-forms/ Share on other sites More sharing options...
obsidian Posted September 30, 2006 Share Posted September 30, 2006 best way i know of: process the form before the header on the same page it was submitted from. on successful completion, here's the simplistic code to forward them to a "thanks.html" page:[code]<?phpheader("Location: thanks.html");exit();?>[/code] Link to comment https://forums.phpfreaks.com/topic/22608-processing-forms/#findComment-101498 Share on other sites More sharing options...
csimms Posted October 2, 2006 Author Share Posted October 2, 2006 thanks for your help.. I got it working now.. thanks for everything Link to comment https://forums.phpfreaks.com/topic/22608-processing-forms/#findComment-102705 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.