Hey, as you can probably tell I am very new to PHP... I am trying to create a simple log in script (that i will make more secure and actually go somewhere later). My problem is that no matter what information you place in the log in box... it authorizes the person....
<?php
function report_error($file, $line, $message) {
echo "An error occured in $file on line $line: $message.";
}
report_error(__FILE__,__LINE__, "something went wrong!");
$user = $_POST['username'];
$pass = $_POST['password'];
$auser = Admin;
$apass = Password;
if ($user = $auser) {
if ($pass = $apass) {
print "log on successful";
echo "you entered $pass";
} else {
print "hey $user, you entered the wrong password";
}
} else {
print "dammit get lost";
}
?>