This commit is contained in:
Thijs Stobbelaar 2023-11-16 14:36:57 +01:00
parent 66644297c4
commit 43f1c96a3c

View file

@ -20,10 +20,10 @@ error_reporting(E_ALL);
include './config/config.php';
$players_data = json_decode(file_get_contents('./data/player_lifetime_data.json'), true);
$selected_mode = isset($_POST['game_mode']) ? $_POST['game_mode'] : 'squad';
$selected_mode = isset($_GET['game_mode']) ? $_GET['game_mode'] : 'squad';
// Form to select game mode
echo "<form method='post' action=''>
echo "<form method='get' action=''>
<input type='submit' name='game_mode' value='solo' class='btn'>
<input type='submit' name='game_mode' value='duo' class='btn'>
<input type='submit' name='game_mode' value='squad' class='btn'>