Can not figure this out
if you go to
http://www.passageinternational.com/weather.php?zipcode=97210
you will get the following errors
Notice: Undefined variable: sitedisplay in /nfs/ank/home1/c/cwheat/footer.php on line 2
Notice: Undefined variable: sitedisplay in /nfs/ank/home1/c/cwheat/footer.php on line 11
Yet if you just hit refreash the errors go away??
Here is the code
<?PHP
session_start();
if (!$site)
{
$SESSION["site"] = "main";
$SESSION["sitedisplay"] = "no";
$SESSION["cliqbook"] = "";
$SESSION["person"] = "";
$SESSION["sitelogo"] = "";
$SESSION["sitename"] = "";
$SESSION["siteurl"] = "";
$SESSION["site_qg_feedisplay"] = "";
$SESSION["site_qg_fee"] = "";
$SESSION["site_contact"] = "";
$SESSION["tc_contact"] = "";
$SESSION["site_message_welcome"] = "";
}
?>
<html>
<title>
<body>
all the page contents
******this is the code in question to the footer file:
<?PHP
if ($sitedisplay == "yes"){
include ('../block_youragent.php');
}else
{
include ('../block_clients.php');
}
?>
<?PHP
if ($sitedisplay == "yes"){
print "<a href=\"http://www.passageinternational.com/main\"><img src=\"removesitebranding.gif\" border=\"0\"></a><img src=\"clear.gif\" width=\"30\">";
}else
{}
?>