Above the header I have this:
<?php if(isset($_GET['Page'])) { $pageset=$_GET['Page'];} else $pageset='home'; ?>
Between the title tags I have this:
<?php if($pageset='slideshow') { $pagetitle = 'Slideshow';}
if($pageset='stats') { $pagetitle = 'Statistics';}
if($pageset='home') { $pagetitle = 'Home';}
if($pageset=(('detail') or ('photo') or ('show'))) { $pagetitle=$itemtitle; }
if($pageset=('search')) {$pagetitle='Search';}
echo $pagetitle;?>
In the body I have this which is delivering the $_GET['Page'] variable correctly:
<form action="index.php" method="get"><input name="Page" type="text" value="home" /><input name='' type="submit" /></form>
The page will not come off the idea that $pageset='search' unless I move my first "if" statement to the body, a sign that something is wrong. I think it's the conditional statements between the title tags that are causing a problem but I cannot see why.