Showing posts with label password matching using js. Show all posts
Showing posts with label password matching using js. Show all posts

Sunday, April 13, 2025

Password Matching Script using Javascript


 <script>

function check(){
   var password = document.getElementById("password").value;
   var cpassword = document.getElementById("cpassword").value;

   if(password==cpassword){
    document.getElementById("status").innerHTML="Matched!";
   }
   else{
    document.getElementById("status").innerHTML="Not Matched!";
   }
}
</script>

<input type="text" id="password" placeholder="Type Password" onkeyup="check()">
<input type="text" id="cpassword" placeholder="Type Confirm Password" onkeyup="check()">
<br/><br/>
<b id="status"></b>

How to Add AI to Your Website

index.php file <form method = "POST" action = "chat.php" >     <input type = "text" name = "...