Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8" />
- <title></title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <link href="css/style.css" type="text/css" rel="stylesheet"/>
- </head>
- <body>
- <form name="form" action="" method="post">
- <input required type="text" name="naam" placeholder="Naam"/><br>
- <input required type="text" name="postcode" placeholder="Postcode"/><br>
- <input required type="text" name="straat" placeholder="Straat"/><br>
- <input required type="text" name="plaats" placeholder="Plaats"/><br>
- <input required type="email" name="email" placeholder="E-mailadres"/><br>
- <textarea name="commentaar" placeholder="Typ je commentaar in..."/><br>
- <input type="submit" name="submit" value="Submit"/><br>
- </form>
- <?php
- if(isset($_POST["submit"]) ){
- if(empty($POST["naam"]) ){
- echo "naam niet ingevuld";
- }
- else{
- $naam = $_POST["naam"];
- $taal = $_POST["taal"];
- if($taal == "N") {
- echo " Goedendag " . $naam;
- }
- elseif($taal == "E") {
- echo " Good morning " . $naam;
- }
- elseif($taal == "S") {
- echo " Buenos dias " . $naam;
- }
- else{
- echo " Taal niet ingevuld ";
- }
- }
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement