virabhairava

index.php

Oct 4th, 2017
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. <?php
  2. session_start()
  3. ?>
  4. <!DOCTYPE html>
  5. <html>
  6. <head>
  7. <title>Log in</title>
  8. <link rel="stylesheet" type="text/css" href="style.css">
  9. </head>
  10. <body>
  11. <div class = "omotac">
  12. <form class = "forma" action = "php/login.php" method = "POST">
  13. <h2 class="decorated"><span>LOG IN</span></h2>
  14. <input tuye = "text" name = "username" placeholder = "Username" autocomplete = "off"><br/>
  15. <input type = "password" name = "password" placeholder = "Password" autocomplete = "off"><br/>
  16. <input type = "submit" name = "submit" value = "Log in"><br/>
  17. </form>
  18. </div>
  19. <p><?php if (!empty($_SESSION['message'])) {
  20. echo $_SESSION['message'];
  21. session_unset();
  22. session_destroy();
  23. } ?></p>
  24. </body>
  25. </html>
Add Comment
Please, Sign In to add comment