<!doctype html>
<html lang="fr">
<head>
  <meta charset="utf-8">
  <title>Tp 1</title>
  <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">
  <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>

    <p>Salut</p>
    
    <form action="authenticate.php" method="post">
        <div class="form-group">
            login :<br>
            <input type="text" class="form-control" name="login"><br>
        </div>
        <div class="form-group">
            password :<br>
            <input type="password" class="form-control" name="passwd"><br>
        </div>
        <input type="submit" class="btn btn-primary" value="Log in">
    </form>
    <?php 
        session_start();
        if (isset($_SESSION['message'])) {
            echo('<section> error : ' . $_SESSION['message'] . '</section>');
            unset($_SESSION['message']);
        }
    ?>

</body>
</html>
