[thelist] PHP: include not getting variable

Edwin Martin edwin at bitstorm.org
Wed Jan 7 08:28:28 CST 2004


Tom,

Are you sure the code below is not in a function?

><a href="/index.php" <?php if($pagetag == "home") { ?>
>class="activePage" <?php } ?> ><span>Home</span></a>

Because in that case, you have to declare $pagetag global.

Edwin Martin  



More information about the thelist mailing list