All,This question probably has a very simple answer - something I'm overlooking. But maybe someone can tell me where to look...I have a PHP page ("index.php") with a very simple login form (e.g., username and password).When the user clicks the "Submit" button, the form POSTs the values to another PHP page ("login.php"). That page is supposed to confirm the user's credentials, then do the following:
- If the user's credentials are notcorrect, redirect the user toerror.php, along with an errormessage
- If the user's credentials AREcorrect, create a session and set $_SESSION['authenticated'] = true, then redirect him to "loggedin.php"