Jump to content


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


Help Changing Header

Recommended Posts

I want to be able to change the header of a page in order to redirect users to a thankyou.php page.  Here's my setup.  I have index.php that has a form on it.  The form uses a processor called answer.php.  The processor sends the form's data to a database.  I used to just have the form data emailed to me and the users were successfully redirected to the thankyou.php page.  I want to be able to have the form data sent to the DB AND redirect the visitors to the thank you page.  Is there anything different I need to do with my original headers to make this happen.  If I need to post the code just let me know.

thanks in advance,

Share this post

Link to post
Share on other sites
When your done doing your processing and there are no errors, just use..

[code]header ( 'Location: /some_page.php' );
exit ();[/code]

But remember you can not output anything before doing ths!


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.