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