Guest User

Untitled

a guest
Sep 2nd, 2018
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <?php
  2.  
  3. $userName = 'mike';
  4. $userPass = '123456';
  5.  
  6. if (!empty($_POST)) {
  7. if ($_POST['login'] == $userName) {
  8. echo "Login is correct... <br>";
  9. echo "Checking password... <br>";
  10. if ($_POST['password'] == $userPass) {
  11. echo "Password is correct...<br>";
  12. echo "You are welcome!";
  13. } else {
  14. echo "Password is not correct!";
  15. }
  16. } else {
  17. echo "Login is not correct!";
  18. }
  19. }
  20.  
  21. ?>
Add Comment
Please, Sign In to add comment