26 lines
495 B
PHP
26 lines
495 B
PHP
<?php
|
|
|
|
$match = 'pass123';
|
|
|
|
if(isset($_POST['password'])){
|
|
$pass = $_POST['password'];
|
|
if(!empty($pass)){
|
|
if($pass == $match){
|
|
echo 'Password is correct!';
|
|
} else {
|
|
echo 'Password is incorrect!';
|
|
}
|
|
|
|
} else {
|
|
echo 'Please enter the password!';
|
|
}
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<form action="WorkingWithPOST.php" method="POST">
|
|
Password: <br> <input type="password" name="password"><br>
|
|
<input type="submit" value="Submit">
|
|
</form>
|