Advertisement
Guest User

LoginForm

a guest
Mar 6th, 2017
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport"
  6. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8. <title>Login</title>
  9. </head>
  10. <body>
  11. <form method="POST">
  12. Username: <input type="text" name="username"> <br>
  13. Password: <input type="password" name="password"> <br>
  14. <input type="submit" name="login">
  15. </form>
  16. </body>
  17. </html>
  18. <?php
  19. $users = ["John" => [ "password" => "123",
  20. "email" => "john@abv.bg",
  21. "birthday" => "12-01-1967",
  22. "fullName" => "John Smith"
  23. ],
  24. "Kiril" => ["password" => "321",
  25. "email" => "kiril@abv.bg",
  26. "birthday" => "27-03-1997",
  27. "fullName" => "Kiril Kirilov"
  28. ],
  29. "Martin" => ["password" => "456",
  30. "email" => "martin@abv.bg",
  31. "birthday" => "22-09-2000",
  32. "fullName" => "Martin Angelov"
  33. ],
  34. ];
  35.  
  36. if (isset($_POST['login'])) {
  37. header("location: profile.php");
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement