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 Creating the Menu and Footer Including the Header

Ronnie Barua
Ronnie Barua
17,665 Points

My contact pages doesn't load

When I click on Contact button nothing happens. Any solution anyone? Thanks

Tyler Schmitt
Tyler Schmitt
10,416 Points

Did you make sure to change the href to "contact.php"? If you left it as #, that would make sense as to why your contact page wouldn't load.

If not, please post some code so we can take a look at what you have.

Jane Lawson
Jane Lawson
1,601 Points

Put "../contact.php" because header.php is in a folder so you will need to jump out of that first

1 Answer

Greg Kaleka
Greg Kaleka
39,021 Points

Hi Ronnie,

I actually had this issue when I first tried it. It's hard to know what your issue is, since you didn't include your header.php code (hint: check out the "Tips for asking questions" in the sidebar over there -->), but here's what I'd check:

You have to make sure you edit the href attribute in header.php. It should be around line 18, where the navigation list item of class "contact" has the following code:

<a href="#">Contact</a>

You need to change the href="#" to href="contact.php".

Let us know if that helped. If not, please share your header.php code!