This isn't printing the $error_title variable where it's supposed to. Can somebody please help me with this script...
#############################################
CODE START
#############################################
<HEAD>
<TITLE>WickedJuggalos.com - Error</TITLE>
<? include ("/www/wickedjuggalos/header.php"); ?>
<tr><td BGCOLOR="darkblue"colspan=3><img src="http://www.wickedjuggalos.com/images/header_corner.gif" width=13 height=16><FONT SIZE="2" COLOR="#FFFFFF" FACE="ARIAL,HELVETICA,SANS-SERIF"><b>Error</b></font></td></tr><tr><td colspan=3><FONT SIZE="-2" COLOR="#ff7f00" FACE="ARIAL,HELVETICA,SANS-SERIF"></font></td></tr><tr><td colspan=3><FONT SIZE="-2" COLOR="#ff7f00" FACE="ARIAL,HELVETICA,SANS-SERIF">
<center>
<b><font face="arial" size="3" color="darkred">Error:</font></b> <font face="arial" size="3" color="white"><? echo $error_title ?></font>
<p>
<?
if ( $id == 401 )
{
$error_title = ("401 - Access Denied");
?>
You do not have access to this area of the site, sorry.
<?
}
elseif ( $id == 403 )
{
$error_title = ("403 - Authorization Required");
?>
You are not authorized to be viewing this part of the site, sorry.
<?
}
elseif ( $id == 404 )
{
$error_title = ("404 - File Not Found");
?>
The URL you were trying to visit doesn't exist. If you manually typed the URL please try again. If the URL was linked wrong on the site please report this error immediatley.
<?
}
elseif ( $id == 500 )
{
$error_title = ("500 - Scripting Error");
?>
There was an error in the script you were trying to use. Please report this error immediatley.
<?
}
else
{
?>
No error message exists for error <? echo $id ?>.
<?
}
?>
</center></td></tr><tr><td> </td></tr><tr><td> </td>
</TR>
</TABLE>
<? include ("/www/wickedjuggalos/footer.php"); ?>
#############################################
CODE END
#############################################
You can see this script in action to see what is wrong at:
http://www.wickedjuggalos.com/errors.php?id=401
http://www.wickedjuggalos.com/errors.php?id=403
http://www.wickedjuggalos.com/errors.php?id=404
http://www.wickedjuggalos.com/errors.php?id=500