Category Archives:

PHP: Contact Form Redirect After Headers Sent

Wednesday, December 8th, 2010
Posted in Web Design by Joel Gross

I recently had an issue where I wanted a PHP contact form to redirect to a thank you page after the headers had already been sent.  If you think outside of the PHP box, there is a very simple way to make this work using Javascript.  Just add this bit of code to the bottom of the page:

printf(“”);
?>