PHP Code:
<?php include("header.php"); ?>
<?php
$User = "Shuttle_Wave";
$Pass = "testing";
?>
<center>
<h1>Admin Login Panel</h1>
<form action='checklogin.php' method='post'>
Username: <input type="text" name="username" />
Password: <input type="password" name="password" />
<input type="submit" name="Submit" value="Login" /></form>
</center>
<?php
if($_POST["username"] == $User && $_POST["password"] == $Pass)
{
session_register("username");
session_register("password");
header("location:main_system.php");
}
else
{
echo "Incorrect Username or Password";
}
?>
<body>
</body>
</html>
i seem to be having problems with my php login i coded. it doesnt work and also it shows the Incorrent ... b4 i even login.
Sorry i am PHP coding beginner
__________________