Posted by Mike on 11/27/07 14:37
Hello,
I have a Login page that checks a Db for a Un and Pw using ajax.
If the Login is incorrect, they just get a embedded message.
If it is correct, I want to redirect COMPLETLY.
Whats happening is the new page is being embedded into the login page,
and I dont want that.
.............................
if ($rowcount==0){
echo "<p>Wrong Username or Password Dufus</p>";
}
else
{//echo "<p>Your logged in $result_1[U]</p>";
$_SESSION['U'] = $result_1[U];
$_SESSION['P'] = $result_1[P];
header( 'Location: Main_Mockup.php' );
}
................................
Any suggestions for this
Thanks
Mike
[Back to original message]
|