<?php
$password = $_POST['password']; // First Password value
$cpassword = $_POST['confirmpassword']; // Second Password Value
if(isset($_POST['submit']))
{
if($password==$cpassword) // Checking Both Password Values Are Same or Not
{
echo "Password Match Successfully";
}
else
{
echo "Both password not same";
}
}
?>
<form action ="" method= "POST">
Password - <input type = "text" name = "password"><br><br>
Confirm Password - <input type= "text" name = "confirmpassword"><br><br>
<input type = "submit" name = "submit">
</form>
Choose the right course and start building your future with practical skills.
Learn HTML, CSS, JavaScript, and PHP to build modern, responsive websites and real-world projects.
Enroll Now See Full Details
Understand electronics basics with hands-on breadboard projects and circuit building techniques.
Enroll Now See Full Details
Step into AI with real-world applications, automation tools, and smart development techniques.
Enroll Now See Full Details