I will try my best to explain, also i would like to thankyou for the help !!!
index.php
<?php
switch ($tp)
{
default : include "error.php";
break;
case "1" : include "1.php";
break;
}
?>
1.php
<?php
switch ($page)
{
case "main" : include "main.php";
break;
default : include "error.php";
break;
}
?>
main.php, error.php
cotain html only !
right !
The index.php loads up the template called 1.php. within 1.php contains code to load main.php. thats about it. It loads on a webserver but not localhost.
Ive tested the script with just this amoutn of code with hardly any html or php. I just wanted to see if they relate.
if you need any more information please ask
thank you