Forum Moderators: coopster
my code: (Sorry I am posting so much about this script. I am just debugging it.)<?php
$path = "includes";
$PageID = $_GET["pageid"];
if ($pageid=="")
{
include('includes/intro.inc');
}
if(isset($PageID))
{
if (! file_exists($filename))
print "<p align=\"center\"><font size=\"6\">Sorry, Page Not Found</font><br>Error 404</p>";$filename = "$path/${PageID}.inc";
include($filename);
}
?>
The bold print looks right but it doesn't work. The text is written on every page. It has taken over the top of every page so every page is an error with the?pageid=x extension.
How should I fix this and make the text appear only when the page cannot find the include file suggested and will not show the php errors sayong it cannot find it?
thanks,
electricocean