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 Quote Link to comment 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] Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.