Code: Select all
if(isset($_POST['raceid']))
{
$raceid = $_POST['raceid'];
$_SESSION['raceid']=$raceid;
} else { $raceid=$_SESSION['raceid'];
}The query does check that the contents of 5 variables are not NULL.
I have set all of these variables, after the script is run, to null:
Code: Select all
$raceid = NULL;Is there a better way of clearing these session variables?