Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Mariya Chorna
5,597 PointsChecking the Request Method
I've done the redirection as it shown in this video http://teamtreehouse.com/library/build-a-simple-php-application/adding-a-contact-form/checking-the-request-method. But I get an error page http://mary-ch.com.ua/wp-content/uploads/2013/12/result.png
What did I do wrong?
Screenshot of contact-process.php http://mary-ch.com.ua/wp-content/uploads/2013/12/contact-process-php.png
Screenshot of contact-thanks.php http://mary-ch.com.ua/wp-content/uploads/2013/12/contact-thanks-php.png
Thank you for help
1 Answer

dhillonsh
4,745 PointsIt's because you are echo'ing something before sending all your header requests. Remove the echo $email_body; and test it again.