signin.php 631 B

1234567891011121314151617181920212223
  1. <?php
  2. session_start();
  3. ?>
  4. <!DOCTYPE html>
  5. <html>
  6. <head>
  7. <meta charset="utf-8">
  8. <title>Signin</title>
  9. </head>
  10. <body>
  11. <h1>Signin</h1>
  12. <form action="authenticate.php" method="post">
  13. <label for="login">Login</label> <input type="text" id="login" name="login" required autofocus>
  14. <label for="password">Password</label> <input type="password" id="password" name="password" required>
  15. <input type="submit" value="Signin">
  16. </form>
  17. <?php if ( isset($_SESSION['message']) && !empty($_SESSION['message']) ) { ?>
  18. <section>
  19. <p><?= $_SESSION['message']; ?></p>
  20. </section>
  21. <?php } ?>
  22. </body>
  23. </html>