I want to define only once, on the page load, the session variable $SESSION_estatus. Then I want to update it ONLY when a request variable is passed on the URL. Currently if the $_REQUEST['estatus'] variable is not present, it is updating the $SESSION_estatus back to all. In other words, I am trying to maintain the state of the selection of $SESSION_estatus when it is not being passed on the URL. I hope that makes more sense.
My code
if(! isset($SESSION_estatus) ){
$SESSION_estatus = 'all';
}
if(isset($_REQUEST['estatus'])){
$SESSION_estatus = $_REQUEST['estatus'];
}
thank you.