area.php
<?php
$username = $_POST['username'];
$password = $_POST['password'];
if($username == 'zxl' and $password == 'zxl' )
{
echo 'login ok';
}
else
{
echo 'login not ok';
}
?>
login.html
<html>
<body>
<form action="area.php" method="POST">
<b>Username</b> <input type="text" name="username"><br>
<b>Password</b> <input type="password" name="password"><br>
<input type="submit" >
</form>
</body>
</html>