View Full Version : page name varaible

06-09-2006, 10:19 PM
My experience with php is only limited to 'includes' for headers and footers. For my header file, i want to add "id=active" if the page name equals to what is in the if statement. This is what if have so far:

<li <?php if pageTitle == 'home.php' echo ('id="active"'); ?>><a href="home.php">Home</a></li>

1. Did i nest the php properly?
2. What is the name of the variable for the page name?
3. Should I use echo or print?
4. Will this work?

Thank you,

06-10-2006, 12:04 AM
nevermind - i figured it out
thanks anyways

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum