1 2 3 4 5 6 7 |
<form method="POST" action="check.php"> <div align="left"><p><font face="BankGothic Md BT">Admin password?</font> <input type="password" name="pw" size="14"> <input type="submit" value="Submit"> </div> |
check.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<?php $password=$_POST['pw']; $adminpass = "test123"; if ($password == $adminpass) { print("Welcome to the administration area!"); } else { print("Wrong password"); } ?> |