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 Build a Simple PHP Application Adding a Contact Form Working with Get Variables

Kelly Ferrell
Kelly Ferrell
2,561 Points

lost my form after I put in the GET function.

The contact form is gone after I completed the GET variable lesson and my form no longer shows on the web page. Not sure what I did wrong.

1 Answer

Do you seen anything on the page? If you see nothing, there's likely to be a syntax error in any part of the page. I would enter the following code at different points throughout the page to find where it's breaking.

echo "test";
exit;

If the test message isn't showing up, even at the very top of the file, you can look for things like - including files that don't exist, or calling functions that don't exist/with invalid arguments.

Hope this helps!