signin.php 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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" 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. if (isset($_SESSION['message'])) {
  24. echo('<section> error : ' . $_SESSION['message'] . '</section>');
  25. unset($_SESSION['message']);
  26. }
  27. ?>
  28. </body>
  29. </html>