So first here is the code, for now it's an emailer basically:
The include.general.php at the beginning of the code contains the session start information as well as a bunch of all purpose functions only a couple of which are used in the contact.php file:
<?PHP //Start the session session_start( ); //This is a fix for Internet Exploder for SessionID's header("Cache-Control: private"); //Include the config for the site include_once("includes/config.php"); //Include the class for the site database connectivity include_once( "includes/class.database.php" ); *snip*
If you look in contact.php file you will see where I clear the session variable ERROR for next use. The problem I am running into is that no matter what I do to clear that session variable, it clears it globally for the whole page. I could clear it at the bottom of my code, and it still will only echo out "" back at the top. I have tried assigning the session variable to a different variable, and again I still get the exact same scenario. However if I take the statement out all together, the SESSION variable stays around, and it gets printed as expected. The downside of course is that it stays that way until it gets set to something else. It's like the processor sets the SESSION variable to "" before it does the HTML and the echo statement. I am very confused here. Can anyone offer some insight?