Jump to content

Archived

This topic is now archived and is closed to further replies.

csimms

Processing Forms

Recommended Posts

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

Share this post


Link to post
Share on other sites
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]
<?php
header("Location: thanks.html");
exit();
?>
[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.