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

i get an error on line 64 when I put in my echo statment. Where do I put the end curly brace to close the else statment

In the GET variable exersize where do I put the closing curly brace. It doesn't show me in the video exersize.

4 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Kelly;

Are you talking about the one Randy adds on line 66 at around 2:33 in the video?

Ken

Richard Barkinskiy
Richard Barkinskiy
10,663 Points

You would include the closing curly brace right after the </form> tag.

Such as:

<?php } ?>
Kelly Ferrell
Kelly Ferrell
2,561 Points

Yes...how do I finish it.

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Kelly;

That should be a closing bracket, which closes the else block on (or about) line 30.

Ken