Ok,
Here's an example of the code inside the included file that display the error messages:
if($_SESSION["login_status"] == "error")
{
echo("
<br>
<table border=\"0\" align-\"center\" valign=\"top\" cellpadding=\"2\" cellspacing=\"0\">
<tr>
<td colspan=\"2\" align=\"center\" class=\"error\">
There was a problem logging in. If this is in error, please call $phone_number.
</td>
</tr>
</table>
");
}
In the login script that checks against the database, I set the session variable "login_status" equal to "error" with the following:
$_SESSION["login_status"] = "error";
right before I redirect to my login page:
header("Location: login.php");
It is really simple code...nothing fancy, so I'm just wondering why it doesn't work. Again, if I paste that exact code into the login form page, it works just fine (which I don't like to do because I like to keep the php code inside include files...separate from the html pages).
Yes, I have tried using $_REQUEST["login_status"], but it doesn't access the variable either.
Thanks.