Forum Moderators: coopster
In the file that isn't being parsed do you have the code surround by the PHP opening and closing tags? It should. Are you including that file as a URL (ie http://www.example.com/script.php) because then the PHP will be parsed before being sent to your script.
It shouldn't be that difficult to make what you want happen and shouldn't require so many includes. Here's an example of how I would do it:
if(#check if user is logged in#)
include('logged_in.html);
else
include('login_form.html');