Public paste
Back 2 Oldsk00l Casper :)
By: Xmoo | Date: Oct 29 2008 18:28 | Format: PHP | Expires: never | Size: 516 B | Hits: 734

  1. <?php if($_GET['p'] == 'ziekmelden') { switch($_GET['a']) { case 'zoeken':
  2. echo 'Hier kun je je ziek melden.<br><br>
  3. <form action="?p=ziekmelden&a=zoeken" method="post">Personeel nummer: <input type="text" name="pid" id="pid" size="40">
  4. <input type="submit" name="submit" value="Meld me ziek!">
  5. </form>';
  6. if(isset($_POST['submit'])) {
  7.    $sql = "SELECT pid,name FROM care_personell WHERE pid = '$pid'";
  8.    echo "<b>Personeel nummer - Naam Achternaam</b>";
  9.    echo "$pid - $name";
  10.    break;
  11.   }
  12.  }
  13. }
  14. ?>