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! While you're at it, check out some resources Treehouse students have shared here.

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

PHP Building Websites with PHP Contact Form & Sending Email Testing For POST Data

Thanitsak Leuangsupornpong
Thanitsak Leuangsupornpong
7,490 Points

Why there nothing appear when I click submit button?

There nothing appear even the top bar for search web is type correct the /contact.Nothing appear like the teacher please help me!

Could you post your code?

3 Answers

Well it says (!emthy) instead of (!empty) in your if statement in the image you posted

It could be as simple as the twig blocks in your code are not closed properly... for example {% block twig %} {% block twig %} won't work because the closing has to be {% endblock twig %}... Anyway check your closing tags for the twig blocks and try to provide more specific information about your problem.

Thanitsak Leuangsupornpong
Thanitsak Leuangsupornpong
7,490 Points

Thank you for your help,but it not about twig,because I can click on the contact link .The problem is on the redirect in the If else statement.In the else,redirect does't work Here my picture, I put the link http://i.imgur.com/KzWfet7.png

Thanitsak Leuangsupornpong
Thanitsak Leuangsupornpong
7,490 Points

Oh the problem is now fixed,Thank you very much!