Code Comments
Programming Forum and web based access to our favorite programming groups.On Fri, Feb 22, 2008 at 6:01 AM, Tim Daff <timdaff@gmail.com> wrote:
> Hi,
>
> This is my first time using php in my site navigation, I have the code
> for all the pages in one file and I am using the switch statement to
> change between them.
[snip!]
None of your code included a case/switch piece. This is probably
what you mean:
<?
$page = basename($_SERVER['PHP_SELF']);
switch($page) {
case "contact.php":
$css = "<li id=\"contact-active\"></li>";
break;
case "portfolio.php":
$css = "<li id=\"portfolio-active\"></li>";
break;
case "whoweare.php":
$css = "<li id=\"whoweare-active\"></li>";
break;
default:
$css = "<li id=\"home-active\"></li>";
break;
}
?>
--
</Dan>
Daniel P. Brown
Senior Unix G
<? while(1) { $me = $mind--; sleep(86400); } ?>
Post Follow-up to this messageFull size movies, best download speed, share with friends! That's all P0RNTUBE: [IMG]http://amazing-cumshot-movies.com/ shot4.jpg[/IMG] [IMG]http://amazing-cumshot-movies.com/ shot7.jpg[/IMG] [IMG]http://amazing-cumshot-movies.com/ shot7.jpg[/IMG] live sex girls from Mapmenbu n8 porn videos from Mapmenbun8[ /URL] [URL=http://www.rfid.us/forums/viewtopic.php?p=194948]pornographic videos from Map menbun8 teen video clip from Orbunla18 live lesbian sex live web cam free live sex webcam chats porn video archive[/U RL] [URL=http://www.tesoltraining.co.uk/bb/viewtopic.php?p=33277]fat ass movies teens videos
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.