1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <!DOCTYPE html>
- <html lang="en">
-
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Difficulty</title>
- </head>
-
- <body>
- <form method="POST" action="#">
- <div class="input-group">
- <p>Select your difficulty</p>
- <label>Difficulty</label>
-
- <br>
- <input type="radio" name="difficulty" id="Easy" value="Easy" checked>
- <label for="Easy">Easy</label>
- <br>
- <input type="radio" name="difficulty" id="Normal" value="Normal">
- <label for="Normal">Normal</label>
- <br>
- <input type="radio" name="difficulty" id="Hard" value="Hard">
- <label for="Hard">Hard</label>
- <br>
- <input type="submit" name="submit" id="submit" value="Submit">
- </div>
- </form>
- </body>
-
- </html>
-
- <?php
-
-
- session_start();
-
- if (isset($_POST['submit'])) {
- $_SESSION['gaming'] = true;
- $_SESSION['difficulty'] = $_POST['difficulty'];
-
-
- header("Location: game.php");
- }
-
- ?>
|