Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $userName = 'mike';
- $userPass = '123456';
- if (!empty($_POST)) {
- if ($_POST['login'] == $userName) {
- echo "Login is correct... <br>";
- echo "Checking password... <br>";
- if ($_POST['password'] == $userPass) {
- echo "Password is correct...<br>";
- echo "You are welcome!";
- } else {
- echo "Password is not correct!";
- }
- } else {
- echo "Login is not correct!";
- }
- }
- ?>
Add Comment
Please, Sign In to add comment