Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

in php how to check md5 password

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php   
$password= "pass123";   
 
if (isset($_POST['password']) && !empty($_POST['password']))
{
$new_password=$_POST['password'];
     
    if(md5($new_password)==md5($password))
    {
        echo "<br> Correct password ";
    }
    else{
        echo "<br> Incorrect password ";
    }
}
 
?>  
 
<form action="md5.php" method="post">
<input type="text" name="password">
<br>
<input type="submit" >
</form>
Source by www.edureka.co #
 
PREVIOUS NEXT
Tagged: #php #check #password
ADD COMMENT
Topic
Name
4+1 =