Public paste
PHP
By: Xmoo | Date: Jun 25 2008 12:00 | Format: PHP | Expires: never | Size: 2.17 KB | Hits: 752

  1. <?php include("config.php"); ?>
  2.  
  3. <HEAD>
  4. <TITLE>Café Restaurant "De Camping" | Reserveren |</TITLE>
  5. <link rel="stylesheet" href="camping.css" type="text/css">
  6. </HEAD>
  7. <BODY>
  8. <?php include("head.php"); ?>
  9. <h3>De beschikbare plaatsen:</h3>
  10. <center><Table border="1" width="600">
  11. <tr><th>Plaats:</th><th>Plaatsen:</th><th>Opmerking:</th></tr>
  12. <tr><th>Terras</th><th>40 plaatsen</th><th>In seizoen, enevtueel vermarmd</th></tr>
  13. <tr><th>Rookhoek</th><th>10 plaatsen</th><th>-</th></tr>
  14. <tr><th>Kinderhoek</th><th>14 plaatsen</th><th>Grenzend aan ballenbad</th></tr>
  15. <tr><th>Balkon</th><th>18 plaatsen</th><th>Alleen via trap bereikbaar</th></tr>
  16. <tr><th>Stamtafels</th><th>32 plaatsen</th><th>-</th></tr>
  17. </table></center><br><br>
  18. <h3>Reserveren:</h3>
  19. <?php           if($_POST["submit"]){
  20.                 $insert = "INSERT INTO reserve (soort, naam, klantnr, aantal_personen, extra)
  21.                                    values ('$soort', '$naam', '$klantnr', '$aantal_personen', '$extra')";
  22.                 $query = mysql_query($insert)or die(mysql_error());
  23.                 echo "<br><strong>Reservering geplaatst!</br></strong>";
  24.         }
  25.         else {
  26.                 echo "<form action="reserveren.php" method="post">";
  27.                 echo "<strong>Type:</strong><br><select name="soort" size="1" size="50" style="background:#FF8080"><option selected name="soort">
  28.                 <option value="Terras">Terras
  29.                 <option value="Rookhoek">Rookhoek
  30.                 <option value="Kinderhoek">Kinderhoek
  31.                 <option value="Balkon">Balkon
  32.                 <option value="Stamtafels">Stamtafels
  33.                 </select><br><br>";
  34.                 echo "<strong>Naam:</strong><br><input type="text" name="naam" size="50" style="background:#FF8080"><br><br>";
  35.                 echo "<strong>Klanten nr:</strong><br><input type="text" name="klantnr" size="50" style="background:#FF8080"><br><br>";
  36.                 echo "<strong>Aantal personen:</strong><br><input type="text" name="aantal_personen" size="50" style="background:#FF8080"><br><br>";
  37.                 echo "<strong>Opermking:</strong><br><textarea rows="5" name="extra" cols="50" style="background:#FF8080"></textarea><br><br>";
  38.                 echo "<input type="submit" name="submit" value="Plaats reservering!" style="background:#B30700"></form>";
  39.         }      
  40. ?><br>
  41. <?php include("menu.php"); ?>
  42. </BODY>
  43. </HTML>