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
Alexander Tam
371 PointsAdding active states to the navigation section - my shirts4mike page is having errors
<ul class="nav"> <li class="shirts <br /> <b>Notice</b>: Undefined variable: section in <b>C:\xampp\htdocs\inc\header.php</b> on line <b>17</b><br /> "<a href="shirts.php">Shirts</a></li> <li class="contact <br /> <b>Notice</b>: Undefined variable: section in <b>C:\xampp\htdocs\inc\header.php</b> on line <b>18</b><br /> "<a href="contact.php">Contact</a></li> <li class="cart"><a href="#">Shopping Cart</a></li> </ul>
This is what appears on the page source when looking at it. I entered in all of the information correctly.
Any help?
1 Answer
Matt Campbell
9,767 PointsWhat have you typed for your variables? This happens when you mistype something or simply don't give your variable a value or something.