Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.93 KB | None | 0 0
  1. <!doctype html>
  2. <html lang="fr">
  3. <header>
  4.   <title>Comptable</title>
  5. <?php
  6. session_start();
  7. if($_SESSION['comptable']== false){
  8.    header('location:../index.php');
  9. }
  10. ?>
  11. <h1>Comptable</h1>
  12. Bienvenue <?php echo $_SESSION['login'];?> <?php echo $_SESSION['prenom'];?>
  13. Matricule : <?php echo $_SESSION['matricule']; ?>
  14.  
  15. </header>
  16. <body>
  17. <p>Selectionner un visiteur</p>
  18. <form method="POST" action="visiteurndf.php">
  19. <select name="visiteurndf">
  20. <?php
  21. require_once '\..\bdd.php';
  22. $req = $dbh->query("SELECT matricule, login, prenom FROM visiteur");
  23. while ($donnees = $req->fetch()) {
  24.     if (isset($donnees['matricule'])){
  25.        
  26.             echo '<option>' . $donnees['matricule'] . ' ' . $donnees['login'] . ' ' . $donnees['prenom'] . ' </option>';
  27.     }
  28.                     }
  29.                     ?>
  30. </select>
  31. <input type="submit" value="selectionner"/>
  32. </form>
  33.  
  34. </body>
  35. <footer>
  36. </br><a href="/gsb/index.php">Deconnexion</a>
  37. </footer>
  38. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement