Advertisement
Guest User

Untitled

a guest
Dec 19th, 2018
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="UTF-8" />
  6. <title></title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  8. <link href="css/style.css" type="text/css" rel="stylesheet"/>
  9. </head>
  10. <body>
  11. <form name="form" action="" method="post">
  12. <input required type="text" name="naam" placeholder="Naam"/><br>
  13. <input required type="text" name="postcode" placeholder="Postcode"/><br>
  14. <input required type="text" name="straat" placeholder="Straat"/><br>
  15. <input required type="text" name="plaats" placeholder="Plaats"/><br>
  16. <input required type="email" name="email" placeholder="E-mailadres"/><br>
  17. <textarea name="commentaar" placeholder="Typ je commentaar in..."/><br>
  18. <input type="submit" name="submit" value="Submit"/><br>
  19. </form>
  20. <?php
  21. if(isset($_POST["submit"]) ){
  22. if(empty($POST["naam"]) ){
  23. echo "naam niet ingevuld";
  24. }
  25. else{
  26. $naam = $_POST["naam"];
  27. $taal = $_POST["taal"];
  28. if($taal == "N") {
  29. echo " Goedendag " . $naam;
  30. }
  31. elseif($taal == "E") {
  32. echo " Good morning " . $naam;
  33. }
  34. elseif($taal == "S") {
  35. echo " Buenos dias " . $naam;
  36. }
  37. else{
  38. echo " Taal niet ingevuld ";
  39. }
  40. }
  41. }
  42. ?>
  43.  
  44.  
  45. </body>
  46. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement