View Single Post
Old 10-19-2004, 05:34 PM   #8 (permalink)
gamehead200
Code Monkey
 
gamehead200's Avatar
 
Join Date: Oct 2004
Posts: 57
gamehead200 is an unknown quantity at this point
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? :/
gamehead200 is offline   Reply With Quote