Hi guys,

Below is the code but when i run the script on my server it shows the Access Denied before i even type anything in also when i type in the correct username and password how do i get it to remove the login box stuff and just leave the Access Granted text?.

PHP Code:
<html>
<head/>
<body>

<form action="login.php" method=POST>
Username <input type=text name=user><br/>
Password <input type=text name=pass><br/>
<input type=submit value="Go"><p>
</form>

<?php

$user
=$_POST['user'];
$pass=$_POST['pass'];

if ((
$user=='admin') && ($pass=='admin')) echo "Access Granted!";
else echo 
"Access Denied!";

?>

</body>
</html>