OK, this code is really starting to piss me off:
PHP Code:
<?php
$p = $_GET['p'];
$page = "pages/$p.txt";
if( !isset($page) )
$page = "pages/Home.txt";
if( file_exists($page) )
include "$page";
else
print("<tr><td class=\"base\" colspan=\"2\">AN ERROR HAS OCCURRED!</td></tr>");
?>
Everytime I run index.php without a variable, the default page outputs the error message in there... Shouldn't this work? :/