Jump to content

Processing Forms


csimms

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
Link to comment
https://forums.phpfreaks.com/topic/22608-processing-forms/
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]
Link to comment
https://forums.phpfreaks.com/topic/22608-processing-forms/#findComment-101498
Share on other sites

Archived

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

×
×
  • Create New...

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.