signin.php 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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. <div class="form-group">
  13. login :<br>
  14. <input type="text" class="form-control" name="login"><br>
  15. </div>
  16. <div class="form-group">
  17. password :<br>
  18. <input type="password" class="form-control" name="passwd"><br>
  19. </div>
  20. <input type="submit" class="btn btn-primary" value="Log in">
  21. </form>
  22. <?php
  23. session_start();
  24. if (isset($_SESSION['message'])) {
  25. echo('<section> error : ' . $_SESSION['message'] . '</section>');
  26. unset($_SESSION['message']);
  27. }
  28. ?>
  29. </body>
  30. </html>