After some googling this is what I came across:
Code:
<?php if ($_SERVER['REQUEST_URI']=='/Upcoming' ) {$Upcoming = 'active'} else {}? {echo $Upcoming} ?>
I declared the variable in advance to be 'normal'
Code:
<?php $Upcoming = 'normal' ?>
and the code should change the variable to be 'active' if the url contains '/Upcoming'... I put the echo $Upcoming in there for debugging to see if it is changing that variable. Unfortunately it is changing that variable no matter what the url contains.
I also have not figured out how to take the
Code:
<li class="active/normal">
to insert the variable so that it would be
Code:
<li class="$Upcoming">
Can someone explain how to implement the php variable into that html/css statement?
thanks
Bookmarks