I have this code:

PHP Code:
<?php
$page 
basename('$page');

if(!
$page)
include(
"page.php");

else
if(
file_exists('page.php'))
{
include(
'page.php');
}


?>
<?php
$page 
basename('$page');

if(!
$page)
include(
"staff.php");

else
if(
file_exists('staff.php'))
{
include(
'staff.php');
}
?>
But the only problem is it shows up all on the same page before i click the links. And when i do click the links, they both show up.