I have the following code:
<html>
<body>
<h1><?isFoo();?></h1>
</body>
</html>
<?php
$foo_app_cookie_val = "foo";
function isFoo() {
global $foo_app_cookie_val;
echo "in isFoo: '$foo_app_cookie_val'<br/>";
return isApp($foo_app_cookie_val);
}
?>
The output I'm getting is:
isFoo: ''
Why aren't I seeing the actual value of $foo_app_cookie_val?