I have having difficulties on this one page login.php becuase of the nature of the session it does not allow a $page to be called. I included the header the same way I did on all other pages. The code highlighted between the ===== is my header include with $page defined for the < ul > so I can call a different class each page. But it's not working on the login page due to the sessionstart. I can get it to work fine on other pages.
If you have any idea's let me know.
<?php
session_start();
if ($_POST['username']) {
if( strtolower($_POST['code'])!= strtolower($_SESSION['texto'])){
function headertop($page) {
include('header.php');
}
headertop('login');
echo "<br /><br />SECURITY CODE ERROR... ";
include('footer.php');
exit();
}