So I have a menu in a php file that looks like this (This is the whole file. I'm totally new to PHP.)
menu.php:
<li id="current"><a href="#"><span>Home</span></a></li>
<li><a href="http://blog.me.net/"><span>Blog</span></a></li>
<li><a href="http://www.me.net/R"><span>Results</span></a></li>
<li><a href="http://www.me.net/P"><span>Pictures</span></a></li>
<li><a href="http://www.me.net/O.html"><span>Our Location</span></a></li>
Now in my pages I do this (index.php):
<div id="tabs1" >
<ul>
<!-- CSS Tabs -->
<?php include("menu.php"); ?>
</ul>
</div>
So what I want to be able to do is change the line above to this:
<?php include("menu.php?current=pictures"); ?>
Which would make the active tab the Pictures tab. How can I do this?
Try this:
I don't think its necessary for it to be done at the server side (using up CPU cycles).
Use javascript/CSS to achieve this.
worth looking at
intelligent navigation
You could also try this:
Your
php
scriptthis is your menu: