Swearwolf
20-01-2008, 08:22 PM
I have this code for my php navigation. the thing is, when the page loads up, it shows the page "home.php" in firefox, but on ie shows nothing til u click a link. any help?
<?php
if($_GET['page']) {
$page = $_GET['page'];
$page = str_replace(".", "", $page);
$page = "".$page.".php";
if(file_exists($page)) {
include("$page");
} else {
include("404.php");
}
}
else {
include("home.php");
}
?>
<?php
if($_GET['page']) {
$page = $_GET['page'];
$page = str_replace(".", "", $page);
$page = "".$page.".php";
if(file_exists($page)) {
include("$page");
} else {
include("404.php");
}
}
else {
include("home.php");
}
?>