I finally figured it out and then I found out i need more help. I have this code but how can I make it so when index.php is opened it automatically shows home.php in where its placed, It currently does that but then every page that I open has that at the top.
PHP Code:<?php
if (!isset($page))
{
include("pages/home.php");
}
if(file_exists($_GET['page'].".php")){
include $_GET['page'].'.php';
}
if(file_exists($_GET['page'].".html")){
include $_GET['page'].'.html';
}
if(file_exists($_GET['page'].".txt")){
include $_GET['page'].'.txt';
}
elseif (isset($page) && !@include("$page"))
{
echo "Error Page not found!";
}
?>





Reply With Quote





