formpassword.php 965 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. if (!isset($_SESSION['login'])) {
  3. header('Location: signin');
  4. exit();
  5. }
  6. ?>
  7. <!doctype html>
  8. <html lang="fr">
  9. <head>
  10. <meta charset="utf-8">
  11. <title>Tp 1</title>
  12. <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">
  13. <link rel="stylesheet" type="text/css" href="style.css">
  14. </head>
  15. <body>
  16. <p>Salut changement mot de passe</p>
  17. <form action="changepassword" method="post">
  18. <div class="form-group">
  19. nouveau mot de passe :<br>
  20. <input type="text" class="form-control" name="passwd"><br>
  21. </div>
  22. <div class="form-group">
  23. encore :<br>
  24. <input type="password" class="form-control" name="passwdconf"><br>
  25. </div>
  26. <input type="submit" class="btn btn-primary" value="ok">
  27. </form>
  28. </body>
  29. </html>