I've secured my website using sessions. On the loginpage users type in their username and password which is then being evaluated by the code below. If it's correct under the loginscreen appears the message "Login succesfull, please click here to continue." My question is: how do I get this working in a way that instead of getting this message the user is automatically redirected to the site?
Thnx in advance!
$Query = mysql_query("SELECT * FROM gebruikers WHERE gebruikersnaam = '$LoginNaam' AND password = '$LoginPassword'");
$Results = mysql_num_rows($Query);
if ($Results == '1') {
$Login = "1";
session_register("Login");
session_register("LoginNaam");
echo "<p align=center><font face=Verdana size=2>Login succesfull. Click <a target=_top href=\"faunaland_org/index_secure.php\">here</a> to continue.</font></p>";
}
else {
echo "<p align=center><font face=Verdana size=2>Incorrect username and/or password. Please try again.</font></p>";
}