I'm trying to make a simple login page to grant access to my form pages. I don't want anything fancy, just a simple name and password match to grant access. What I have grants access no matter what is typed in, and I don't understand why.
Any help would be appreciated. here's the code
Hendo
<html>
<head>
<link rel="stylesheet" type="text/css" href="fh.css" />
</head>
<body>
<form action='forms.php' method='post'>
Username: <input type='text' name='user'><BR>
Password: <input type='password' name='pass'><BR>
<input type='submit' value='Login'>
</form>
<?php
$user="";
$pass="";
// this variable is anything you enter in the uname and password fields
$user=$_POST['user'];
$pass=$_POST['pass'];
// authenticate
if (($user=="Enter") && ($pass=="12345")) echo "Access Granted";
else echo "Access Denied";
?>