So in user.php, $_SESSION variables are not working... even though I think I've declared it as a global... any tips would be great.
<?PHP
function user() {
global $SESSION;
global $POST;
global $GET;
if (empty($SESSION[email])) {
?>
<div id="post-1">
<h2 class="entry-title">User Log In</h2>
<div class="entry-content">
<p>You can skip registration and use your Facebook account to enroll in this contest.</p>
<a href="#"><img id="facebook_signin" src="images/fblogin.png"></a>
<p><a href="">I am a Returning User, I Want to Sign In.</a></p>
<h3>If you don't have an account, you can create one below.</h3>
<form method="post" action="index.php?mode=user&action=register">
<input style="width: 50%; margin-right: 10px;" type="text" name="FIRSTNAME"><label for="EMAIL">First Name</label>
<input style="width: 50%; margin-right: 10px;" type="text" name="LASTNAME"><label for="EMAIL">Last Name</label>
<input style="width: 50%; margin-right: 10px;" type="text" name="EMAIL"><label for="EMAIL">Email Address</label>
<input style="width: 50%; margin-right: 10px;" type="text" name="PASSWORD"><label for="EMAIL">Password</label>
<p><input style="font-size: 26px; padding: 15px;" type="submit" name="Submit" value="Create Account"></p>
</form>
</div>
</div>
<?PHP
}
if (!empty($_SESSION[email])) {
include "user.php";
}
}
//- - - - - - - - - - - - - - - - - - - - ->
?>
user.php
<div id="post-1">
<h2 class="entry-title">Hello <?php echo $SESSION[first_name]; ?></h2>
<div class="entry-content">
You are currently logged in as [<?php echo $SESSION[email]; ?>]. Would you like to <a href="index.php?action=logout">log out</a>?
</div>
</div>