Ok...
I'm having a problem where I cannot read the variable properly when an url like this is used:
index.php?Page=Cheats
The page I am using to get the data is this:
<?php
$PageTitle = "Kule Place =]";
require ("../include/header.php"); //(header sets the PageTitle)
require ("img/logo.php");
//even if I take the following if conditional out it still doesn't make any difference:
if (!$Page) {
$Page = "news";
}
$ThisPage = $Page . ".php";
if (file_exists($ThisPage)) {
require ($ThisPage);
} else {
print("<b>$ThisPage could not be found.<br>Please go back to the main page by clicking <big><a href=\"index.php\">here</a></big>.</b>");
}
require ("../include/footer.php");
?>
The problem I am having is that it just defaults to news.php with any Page in the address. Even if I take out If (!$Page) {... then I just get ThisPage could not be found...
I'm running Windows 98SE, Apache 2.0 and PHP 4.2.3