Hi,
I have a login page that has a form that goes to processing page wich the has the logic that in case login fields are empty or invalid to redirect back to login page with result variable set to "badlogin". I ran it a couple times and it worked fine. Then all of a sudden: when I run it, the original login page doesn't reload after being redirected from processing. I have to hit refresh on a browser for it to come up.
Here is the code freom my processing page that redirects it:
$user = $_REQUEST["username"];
$pass = $_REQUEST["password"];
$logintype = $_REQUEST["logintype"];
if( "" == $pass || !preg_match( "^[a-zA-Z]+^", $pass ) ){
$error = 1;
}
if( 0 != $error ){
if ( $logintype == "admin" ) {
header( "Location: ../LoginAdmin.php?loginresult=badlogin" );
include( "../LoginAdmin.php" );
exit();
}
exit();
}