l105/PO Informatica P4/solliciterenbakker.php

<?php /* $voornaam = $_POST['voornaam']; $achternaam = $_POST['achternaam']; $leeftijd = $_POST['leeftijd']; $email = $_POST['email']; $submit = $_POST['submit']; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Solliciteren</title> <link rel="stylesheet" href="style.css"> <style> .gegevens{ display: inline-block; width: 120px; } .logo { width: 200px; height: 70px; } .logoomhulsel { text-align: center; } </style> </head> <body> <div class="logoomhulsel"> <img class="logo" src="images\Jumbo_Logo.svg.png" alt=""> </div> <div class="navbarjumbo"> <a id="homeknop" href="Bakker.php">Bakker</a> <a href="historie.php">Historie</a> <a href="specialiteiten.php">Specialiteiten</a> <a href="producten.php">Assortiment</a> <a href="solliciterenbakker.php">Solliciteren</a> </div> <h1>Solliciteren bij jumbo</h1> <form action="" method="post"> <div class="gegevens">Voornaam:</div> <input type="text" name="voornaam"> <br> <div class="gegevens">Achternaam:</div> <input type="text" name="achternaam"> <br> <div class="gegevens">Leeftijd:</div><input type="text" name="leeftijd"> <br> <div class="gegevens">email:</div><input type=" text" name="email"> <br> <input type="submit" name="submit" value="Verzenden"> <br> <br> <?php if($submit) { if ($voornaam) { if ($achternaam) { if ($leeftijd) { if ($leeftijd > '15') { if ($email) { echo "Hallo $voornaam $achternaam, je sollicitate is binnen en je wordt binnekort gemaild op <i> $email </i>"; } else { echo "Je hebt geen email ingevult"; } } else { echo "Met die leeftijd mag je niet werken"; } } else { echo "Je hebt geen leeftijd ingevuld"; } } else { echo "Je hebt geen achternaam ingevuld"; } } else { echo "je hebt geen voornaam ingevuld"; } } ?> </form> </body> </html> </body> </html> */

Resultaat

Made by Thijs Aarnoudse