niggakiller

login form

May 14th, 2019
599
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.74 KB | None | 0 0
  1. <!doctype html>
  2. <?php
  3. if(isset($_POST['submit'])){
  4. $user = $_POST['username'];
  5. $pass = $_POST['password'];
  6. if($user=="admin" && $pass=="admin"){
  7. echo("username and password matched");
  8. }else{
  9. echo("error ! please enter correct data!");
  10. }
  11. }
  12. ?>
  13. <html>
  14. <head>
  15. <meta charset="utf-8">
  16. <title>Untitled Document</title>
  17. </head>
  18.  
  19. <body>
  20. <form action="" method="post">
  21. <table align="center">
  22. <tr>
  23. <td>username:</td>
  24. <td><input type="text" name="username" placeholder="enter your username"></td>
  25. </tr>
  26. <tr>
  27. <td>Password:</td>
  28. <td><input type="password" name ="password" placeholder="enter your password"></td>
  29. </tr>
  30. <tr>
  31. <td></td>
  32. <td><input type="submit" name="submit" value="submit"</td>
  33. </tr>
  34. </table>
  35. </form>
  36. </body>
  37. </html>
Add Comment
Please, Sign In to add comment