Thanks for your reply, Derokorian.
I tried eval($page2):
$file_var1 = file_get_contents("http://www.webpage dot com");
$file_var1 = eval($file_var1);
echo "$file_var1";
but it gave the following error:
Parse error: syntax error, unexpected '<' in /foodir/foo/www/index.php(12) : eval()'d code on line 1
I then tried using Curl: e.g. curl_exec(...) et al.
The result still didn't have an effect on the login box show/hide var:
$show_login_box = ( ( $_SESSION['user_id'] == '' ) ? 1 : 0 );
Something else must be going on... 😕
========
I then found a way to see on Page 1, what the value of that hide/show login box was from Page 2 by creating a $_SESSION var.
To my surprise, that show/hide var IS being assigned properly, even when using file_get_contents(). :rolleyes:
PROBLEM PERSISTS: The login box is still there.
QUESTION: Could this be a COOKIE problem/solution? 😕
Via print_r($GLOBALS) for _COOKIE and HTTP_COOKIE, Page 2 has user, pass, and PHPSESSID. For Page 1, only PHPSESSID is present.
Thanks.