So basically, I'm trying to make a website with a login system. The system sets $_SESSION['login'] = 1 if the client logs in correctly. That works fine.
The problem is that the secure pages each contain a crapload of HTML code that I really don't want to have to cram into an echo (see below).
Code: Select all
if(!$_SESSION['login'])
{
REDIRECT
}
else
{
echo('HUNDREDS OF LINES OF HTML');
}
Code: Select all
if(!$_SESSION['login'])
{
REDIRECT
}
<html>....