Why is it that $loadCount does not get updated inside of this function? Actually it does get updated, but on repeated calls to this function it is NULL again, meaning the else part is never executed.
function CheckLoad()
{
global $loadCount;
if( $loadCount ==NULL )
{
echo("The_Count_Was Empty");
printf(" <hr>");
$loadCount =1; //update the variable
}
//This part is never executed!!!
else .....
The variable $loadCount is declared in another script file, or globally in this script.
How should i declare a global variable, so that it can be updated, after say a button is pressed on a form?