Guest User

Untitled

a guest
Mar 5th, 2018
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Login</title>
  4. </head>
  5. <body>
  6. <form action="#" method="post">
  7. <h3>Login</h3>
  8. UserName:<input type="text" name="usrname" placeholder="Enter User Name"/>
  9. <br>
  10. Password:<input type="password" name="pswd" placeholder="Enter User Name"/><br>
  11. <input type="submit" value="Login"/>
  12. </form>
  13. <?php
  14.  
  15. $user = $_POST['usrname']
  16. $upswd = $_POST['pswd']
  17. if ($user != "anmolx225")
  18. echo "<script>alert('Username is incorrect');</script>"
  19. if ($upswd != "Addidas")
  20. echo "<script>alert('Password is incorrect');</script>"
  21. if ($user == "anmolx225" && $upswd == "Addidas"){
  22. echo "<script>document.getElementById('one').style.display='none';</script>"
  23. echo "<p>Login Successfull</p>"
  24. ?>
Add Comment
Please, Sign In to add comment