test.php 524 Bytes
<?php
error_reporting(E_ALL);
$password ="1111";

 $hash=hash( "md5",$password);

 if(isset($_POST['password']))
 {
 	$input=hash("md5",$_POST['password']);

 	if ($input==$hash) {
 		echo '<script> alert("success");</script>';
 	}
 }

echo $hash;
//echo "\n";

//echo $password;

?>
<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
  <form method="post", action=" ">
  	 <input type="password" name="password">
  	 <input type="submit" name="button">

  </form>
</body>
</html>