Sorry if this seems obvious to some, but
On the "check" page I have
then on admin.php I have on the first line
My question:
Why doesn't this work? It won't let me log in, but keeps redirecting back to the check page. What obvious thing am I missing here?
Thanks.
On the "check" page I have
Code:
session_start(); $_SESSION['subjectshort']=$subjectshort; [previously defined] $_SESSION['admincheck']='horse'; header( "Location: admin.php" );
Code:
<?php session_start(); if(isset($_SESSION['admincheck'])) { ?>
...stuff...
<?php } else { redirect to check page} ?>
Why doesn't this work? It won't let me log in, but keeps redirecting back to the check page. What obvious thing am I missing here?
Thanks.
Comment