<?php
$password = $_POST["password"];
if (isset($password) == true){
echo "your password = ".$password."<hr>";
echo "Encrypted password = ".md5($password)."<hr>";
}else{
echo "please enter your password";
};
echo'
<form action="index.php" method="post" >
password : <input type="password" name="password">
<input type="submit" />
';
?>
in this code i want to encrypt user password using md5 function
but when the user enter nothing it echo
d41d8cd98f00b204e9800998ecf8427e
and used isset function to fix this but it is not working