signin.php 858 B

1234567891011121314151617181920212223242526272829
  1. <!doctype html>
  2. <html lang="fr">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Tp 1</title>
  6. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
  7. <link rel="stylesheet" type="text/css" href="style.css">
  8. </head>
  9. <body>
  10. <p>Salut</p>
  11. <form action="authenticate.php" method="post">
  12. login :<br>
  13. <input type="text" name="login"><br>
  14. password :<br>
  15. <input type="password" name="passwd"><br>
  16. <input type="submit" value="Log in">
  17. </form>
  18. <?php
  19. session_start();
  20. if (isset($_SESSION['message'])) {
  21. echo('<section> error : ' . $_SESSION['message'] . '</section>');
  22. unset($_SESSION['message']);
  23. }
  24. ?>
  25. </body>
  26. </html>