Blame view

view/test.php 524 Bytes
cf76164e6   Ting Chan   20190709
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  <?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 "
  ";
  
  //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>