signin.php 716 B

1234567891011121314151617181920212223242526
  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. <p>
  18. If you don't have an account, <a href="signup.php">signup</a> first.
  19. </p>
  20. <?php if ( isset($_SESSION['message']) && !empty($_SESSION['message']) ) { ?>
  21. <section>
  22. <p><?= $_SESSION['message']; ?></p>
  23. </section>
  24. <?php } ?>
  25. </body>
  26. </html>