This commit is contained in:
Lanta 2023-11-16 14:36:57 +01:00
parent b1e165e354
commit cce1a822e4

View file

@ -20,10 +20,10 @@ error_reporting(E_ALL);
include './config/config.php'; include './config/config.php';
$players_data = json_decode(file_get_contents('./data/player_lifetime_data.json'), true); $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 // 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='solo' class='btn'>
<input type='submit' name='game_mode' value='duo' class='btn'> <input type='submit' name='game_mode' value='duo' class='btn'>
<input type='submit' name='game_mode' value='squad' class='btn'> <input type='submit' name='game_mode' value='squad' class='btn'>