I have code that checks to see if the user has the correct user and password filled out in a form. It then takes them to the member page. The member page uses
<?php
if (auth != "yes")
{
header("location: http://www.mysite.com/index.php");
exit();
}
?>
to see if the variable 'auth' is set to yes.
I am using this code on the login page
if ($num2 > 0) // password is correct
{
$auth="yes";
header("Location: http://www.mysite.com/trashform2.php");
}
It takes me to the member page but it does not keep 'auth' set to "yes" Please help me! Thx
-Shaw