post2get
This commit is contained in:
parent
b1e165e354
commit
cce1a822e4
1 changed files with 2 additions and 2 deletions
|
|
@ -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'>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue