Employee Center Login
';
echo 'hi'
if (isset($_POST['stage']) && ('process' == $_POST['stage'])) {
process_form();
}else{
print_form();
}
function process_form() {
$vUsr = MD5(strtolower($_POST['username']));
$vPwd = MD5(strtolower($_POST['pw']));
if($vUsr == '5e4b50f710e1f95c8a6df5dc84e2fbcf' && $vPwd == 'f37bd2f66651e7d46f6d38440f2bc5dd'){
assign_credentials();
header("location: main.php");
exit();
}else{
print_form();
echo 'Incorrect username or password. Please try again.
';
}
}
function assign_credentials(){
$_SESSION['status']="authenticated";
}
function print_form() {
echo <<
Please log in below:
END;
}
?>