ok, so i have this snipet of php that displays an html document in my main page.
<?php
$page = isset($_GET['page']) ? $_GET['page'] : 'home';
//$main = isset($_GET['main']) ? $_GET['main'] : 'home';
//added by josh lange
if (strpos($page, "http") != FALSE || strpos($page, "ftp") != FALSE) {
$page = "home";
}
//if (strpos($main, "http") != FALSE || strpos($main, "ftp") != FALSE) {
//$page = "home";
//}
include ("$page.html");
//include ("$main.php");
?>
the problem is that the internal html seems to be using the css fill of the main page. It should be using its own. any help will be great, thanks.
Tags: