Checklogin.php
[php]
[/php]
login_success.php
[php]<?
session_start();
if!session_is_registered(myusername)){
header("location:admin.php");
}
?>
#header { width:100%; height:50px; background-color:#03C; border:#000 1px solid; color:#FFF; text-align:center; } #wrap { margin:0 auto; width:100%; height:auto; text-align:center; } #login { div-align:center; margin: 0 auto; width:400px; height:300px; margin-top:100px; } .textinput { border-radius:5px; width:200px; } .label { disply:block; font-weight:bold; } #footer { width:100%; height:30px; background-color:#03C; } #footer h3 { text-align:center; color:#FFF; } #footer h4 { float:right; color:#F00; } Untitled DocumentAdmin Area
YOU HAVE LOGGED IN
copyright
#header {
width:100%;
height:50px;
background-color:#03C;
border:#000 1px solid;
color:#FFF;
text-align:center;
}
#wrap {
margin:0 auto;
width:100%;
height:auto;
text-align:center;
}
#login {
div-align:center;
margin: 0 auto;
width:400px;
height:300px;
margin-top:100px;
}
.textinput {
border-radius:5px;
width:200px;
}
.label {
disply:block;
font-weight:bold;
}
#footer {
width:100%;
height:30px;
background-color:#03C;
}
#footer h3 {
text-align:center;
color:#FFF;
}
#footer h4 {
float:right;
color:#F00;
}
Untitled DocumentAdmin Area
Log In
username:
password:
copyright
al as i get when the form is submitted is it saying You have entered the Wrong username or password
so i assume there is something wrong with
[php]if($count==1){
session_register("myusername");
session_register("mypassword");
header("location:login_success.php");
}[/php]
reagrds
karl