Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * User: Mohamed Bakchich
- * Date: 2/3/2018
- * Time: 12:06 PM
- * Bestand: template.php
- * Template voor alle opdrachten
- */
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <link type="text/css" rel="stylesheet" href="../../css/style.css">
- <meta charset="utf-8" />
- </head>
- <body>
- <header><?php include "../../includes/header.php"; ?></header>
- <div id="wrapper">
- <h2>Extra opdracht</h2>
- <form action="index.php" method="post">
- <input type="submit" name="verzend" value="WERP" />
- </form>
- <br>
- <?php
- if(isset($_POST["verzend"]))
- {
- $worp = rand(1,6);
- if ($worp == 1){
- echo "Je hebt 1 gedobbelt!";
- }
- elseif ($worp == 2){
- echo "Je hebt 2 gedobbelt!";
- }
- elseif ($worp == 3){
- echo "Je hebt 3 gedobbelt!";
- }
- elseif ($worp == 4){
- echo "Je hebt 4 gedobbelt!";
- }
- elseif ($worp == 5){
- echo "Je hebt 5 gedobbelt!";
- }
- elseif ($worp == 6){
- echo "Je hebt 6 gedobbelt!";
- }
- }
- ?>
- </div>
- <footer><?php include "../../includes/footer.php"; ?></footer>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement