Hi i'm slightly confused and wondered if someone could look at this code for me and sort it. Cheers.
if($count==1){
session_register("ADMIN");
session_register("ADMIN");
echo "<META HTTP-EQUIV='Refresh' CONTENT='0; URL=login_success1.php'>";
}
else if($count==1){
// Register $myusername, $mypassword and redirect to file "login_success.php"
session_register("myusername");
session_register("mypassword");
echo "<META HTTP-EQUIV='Refresh' CONTENT='0; URL=login_success.php'>";
//header("location:login_success.php");
}
else {
echo "Wrong Username or Password";
}
Basically i want to direct the admin account to somewhere else from normal login, basically everything now goes to the admin account so the second part isn't working although the else part is.
Thanks.
if($count==1){
session_register("ADMIN");
session_register("ADMIN");
echo "<META HTTP-EQUIV='Refresh' CONTENT='0; URL=login_success1.php'>";
}
else if($count==1){
// Register $myusername, $mypassword and redirect to file "login_success.php"
session_register("myusername");
session_register("mypassword");
echo "<META HTTP-EQUIV='Refresh' CONTENT='0; URL=login_success.php'>";
//header("location:login_success.php");
}
else {
echo "Wrong Username or Password";
}
Basically i want to direct the admin account to somewhere else from normal login, basically everything now goes to the admin account so the second part isn't working although the else part is.
Thanks.