Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="fr">
- <header>
- <title>Comptable</title>
- <?php
- session_start();
- if($_SESSION['comptable']== false){
- header('location:../index.php');
- }
- ?>
- <h1>Comptable</h1>
- Bienvenue <?php echo $_SESSION['login'];?> <?php echo $_SESSION['prenom'];?>
- Matricule : <?php echo $_SESSION['matricule']; ?>
- </header>
- <body>
- <p>Selectionner un visiteur</p>
- <form method="POST" action="visiteurndf.php">
- <select name="visiteurndf">
- <?php
- require_once '\..\bdd.php';
- $req = $dbh->query("SELECT matricule, login, prenom FROM visiteur");
- while ($donnees = $req->fetch()) {
- if (isset($donnees['matricule'])){
- echo '<option>' . $donnees['matricule'] . ' ' . $donnees['login'] . ' ' . $donnees['prenom'] . ' </option>';
- }
- }
- ?>
- </select>
- <input type="submit" value="selectionner"/>
- </form>
- </body>
- <footer>
- </br><a href="/gsb/index.php">Deconnexion</a>
- </footer>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement