This code doesn't print the $error_title or $error_message and I can't figure out why. Can anybody spot a problem with this?
<?
if ( $id == "401" )
{
$error_title == ("401 - Access Denied");
$error_message == ("You do not have access to this area of the site, sorry.");
}
elseif ( $id == "403" )
{
$error_title == ("403 - Authorization Required");
$error_message == ("You are not authorized to be viewing this part of the site, sorry.");
}
elseif ( $id == "404" )
{
$error_title == ("404 - File Not Found");
$error_message == ("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");
$error_message == ("There was an error in the script you were trying to use. Please report this error immediatley.");
}
else
{
$error_title == ("Unknown");
$error_message == ("No error message with the exists for the input error.");
}
?>
<b><font face="arial" size="3" color="darkred">Error:</font></b> <font face="arial" size="3" color="white"><? echo ("$error_title"); ?></font>
<p>
<? echo ("$error_message"); ?>