Advertisement
Guest User

Untitled

a guest
May 21st, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * User: Mohamed Bakchich
  5. * Date: 2/3/2018
  6. * Time: 12:06 PM
  7. * Bestand: template.php
  8. * Template voor alle opdrachten
  9. */
  10. ?>
  11. <!DOCTYPE html>
  12. <html lang="en">
  13. <head>
  14. <link type="text/css" rel="stylesheet" href="../../css/style.css">
  15. <meta charset="utf-8" />
  16. </head>
  17. <body>
  18. <header><?php include "../../includes/header.php"; ?></header>
  19. <div id="wrapper">
  20. <h2>Extra opdracht</h2>
  21. <form action="index.php" method="post">
  22. <input type="submit" name="verzend" value="WERP" />
  23. </form>
  24. <br>
  25. <?php
  26. if(isset($_POST["verzend"]))
  27. {
  28. $worp = rand(1,6);
  29.  
  30. if ($worp == 1){
  31. echo "Je hebt 1 gedobbelt!";
  32. }
  33. elseif ($worp == 2){
  34. echo "Je hebt 2 gedobbelt!";
  35. }
  36. elseif ($worp == 3){
  37. echo "Je hebt 3 gedobbelt!";
  38. }
  39. elseif ($worp == 4){
  40. echo "Je hebt 4 gedobbelt!";
  41. }
  42. elseif ($worp == 5){
  43. echo "Je hebt 5 gedobbelt!";
  44. }
  45. elseif ($worp == 6){
  46. echo "Je hebt 6 gedobbelt!";
  47. }
  48. }
  49. ?>
  50. </div>
  51. <footer><?php include "../../includes/footer.php"; ?></footer>
  52. </body>
  53. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement