Code: Select all
<?php
if ($_GET[page] !=""){
$file = "" . $_GET[page] . ".php";
} else {
$file = "error.php";
}
include("$file");
?>*note - im using iframes as well with this, could that be causing the problem?*
second how would i get it to look into 2 or more directorys for files, for example to look in the one that the file with the code is in and a directory called, downloads
Thanks in Advance