Store the value in a global session variable perhaps then call it if needed.
// Store It $_SESSION['GlobalValue'] = $MyValue ; // Call It If Value No Longer Exists if(empty('$MyValue')) { $MyValue = $_SESSION['GlobalValue'] ; }