Log in

View Full Version : All Php Includes on same line..



Hashbrown
09-12-2007, 06:01 PM
I have this 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.

Want to hide these adverts? Register an account for free!