Ok I know exactly what you are trying to do. I just figured it out for my own website. Try this. On the page being included, before everything else a he floowing code. [code] <?php $pages = array( 'test' => 'includes/test.php', ); if (isset($_GET['p']) && isset($pages[$_GET['p']])) { $title = "[i]title[/i]"; $description = "[i]description[/i]"; //Can also be $pages or whatever your varible is }else{ $title = "[i]alternate_title[/i]"; //You can leave blank $descrition = "[i]alternate_description[/i]"; //You can leave blank } ?> [/code] Then where you call these put this: [code]<?php echo $title; ?> <?php echo $description; ?>[/code] or however you want to call them Below is an example of the script my site uses: [code]<?PHP $valid_pages = array('news', 'about', 'contact', 'pricing', 'portfolio', 'main', 'legal'); $page = $_GET['page']; if (in_array($page, $valid_pages)) { $subTitle = $title." - ".$page; } else { $subTitle = $title; } ?>[/code] then when I call the script I used: [code]<title><?php echo $subTitle; ?></title>[/code]