PHP
By: Xmoo | Date: Jun 25 2008 12:00 | Format: PHP | Expires: never | Size: 2.17 KB | Hits: 1254
- <?php include("config.php"); ?>
- <HEAD>
- <TITLE>Cafι Restaurant "De Camping" | Reserveren |</TITLE>
- <link rel="stylesheet" href="camping.css" type="text/css">
- </HEAD>
- <BODY>
- <?php include("head.php"); ?>
- <h3>De beschikbare plaatsen:</h3>
- <center><Table border="1" width="600">
- <tr><th>Plaats:</th><th>Plaatsen:</th><th>Opmerking:</th></tr>
- <tr><th>Terras</th><th>40 plaatsen</th><th>In seizoen, enevtueel vermarmd</th></tr>
- <tr><th>Rookhoek</th><th>10 plaatsen</th><th>-</th></tr>
- <tr><th>Kinderhoek</th><th>14 plaatsen</th><th>Grenzend aan ballenbad</th></tr>
- <tr><th>Balkon</th><th>18 plaatsen</th><th>Alleen via trap bereikbaar</th></tr>
- <tr><th>Stamtafels</th><th>32 plaatsen</th><th>-</th></tr>
- </table></center><br><br>
- <h3>Reserveren:</h3>
- <?php if($_POST["submit"]){
- $insert = "INSERT INTO reserve (soort, naam, klantnr, aantal_personen, extra)
- values ('$soort', '$naam', '$klantnr', '$aantal_personen', '$extra')";
- echo "<br><strong>Reservering geplaatst!</br></strong>";
- }
- else {
- echo "<form action="reserveren.php" method="post">";
- echo "<strong>Type:</strong><br><select name="soort" size="1" size="50" style="background:#FF8080"><option selected name="soort">
- <option value="Terras">Terras
- <option value="Rookhoek">Rookhoek
- <option value="Kinderhoek">Kinderhoek
- <option value="Balkon">Balkon
- <option value="Stamtafels">Stamtafels
- </select><br><br>";
- echo "<strong>Naam:</strong><br><input type="text" name="naam" size="50" style="background:#FF8080"><br><br>";
- echo "<strong>Klanten nr:</strong><br><input type="text" name="klantnr" size="50" style="background:#FF8080"><br><br>";
- echo "<strong>Aantal personen:</strong><br><input type="text" name="aantal_personen" size="50" style="background:#FF8080"><br><br>";
- echo "<strong>Opermking:</strong><br><textarea rows="5" name="extra" cols="50" style="background:#FF8080"></textarea><br><br>";
- echo "<input type="submit" name="submit" value="Plaats reservering!" style="background:#B30700"></form>";
- }
- ?><br>
- <?php include("menu.php"); ?>
- </BODY>
- </HTML>
Latest pastes
1 days ago
1 days ago
11 months ago
13 months ago
17 months ago