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


Build a Simple PHP Application: Creating the Menu and Footer - link issues

I can't get any of my php pages to link to the index. I have everything structured and formatted exactly as they appear in the videos, but when I load the index in my browser and click on one of the links, the url just appears "localhost/#".

I've used Firebug (in Firefox) and the links appear to be empty, but I've resaved an reloaded my php files several times. I've tried all of the following:

 <li class="contact"><a href="contact.php">Contact</a></li>
 <li class="contact"><a href="/contact.php">Contact</a></li>
 <li class="contact"><a href="localhost/contact.php">Contact</a></li>
  <li class="contact"><a href="htdocs/contact.php">Contact</a></li>

None will link. I've triple checked that my files are named correctly. Any idea what I'm doing wrong? Everything else is working, I just can't link to my contact page. I can pull up the files in the browser with localhost/contact.php and localhost/shirts.php

1 Answer

Now that I've gotten into the variable section, this just suddenly started working. Still very confused as to why there was an issue, but at least I have a functioning site now.