I have a navigation like this:
<div class="navigation" id="<?php echo $page ?>">
<ul>
<li>`<a class="home" href="index">Home</a>`</li>
<li>`<a class="training-gallery" href="training-gallery">Training Gallery</a>`</li>
<li>`<a class="products-and-merchandise" href="products-and-merchandise">Products & Merchandise</a><`/li>
<li>`<a class="facebook-page" href="facebook-page">Personal Training on Facebook</a>`</li>
<li>`<a class="personal-training-forum" href="client-feedback">Client Feedback</a>`</li>
<li>`<a class="dannys-blog" href="dannys-blog">Danny's Blog</a>`</li>
</ul>
</div>
in my page, I have put the following line of code at the top of the page of a page called training gallery:
<?php $page ='training-gallery' ?>
On my website when I inspect the element using firebug, I get a message like:
Notice: Undefined variable: page in /Applications/XAMPP/xamppfiles/htdocs/Websites/twd/dtpt/includes/navigation.php on line 1
on the link of the training gallery page.
I am assuming I need a GET method instead of this simple bit of code to say that if you are on the training-gallery page, put the name of the page training-gallery on the navigation id line in the code. by defining where the page is. Hopes this makes sense.