post to get and clickable month % #109
2 changed files with 3 additions and 3 deletions
|
|
@ -99,7 +99,7 @@ error_reporting(E_ALL);
|
|||
|
||||
|
||||
echo "<tr>
|
||||
<td>$player_name</td>
|
||||
<td><a href='https://dev.dtch.online/latestmatches.php?selected_player=$player_name'>$player_name</a></td>
|
||||
<td>$winratio</td>
|
||||
<td>$KD_H</td>
|
||||
<td>$KD_ALL</td>
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ error_reporting(E_ALL);
|
|||
$players_matches = json_decode(file_get_contents('./data/player_matches.json'), true);
|
||||
|
||||
// Display buttons for each player
|
||||
echo "<form method='post' action=''>";
|
||||
echo "<form method='get' action=''>";
|
||||
foreach ($players_matches as $player_data) {
|
||||
if (isset($player_data['playername'])) {
|
||||
$player_name = $player_data['playername'];
|
||||
|
|
@ -32,7 +32,7 @@ error_reporting(E_ALL);
|
|||
|
||||
echo "</form><br>";
|
||||
|
||||
$selected_player = $_POST['selected_player'] ?? $players_matches[0]['playername'];
|
||||
$selected_player = $_GET['selected_player'] ?? $players_matches[0]['playername'];
|
||||
$mapNames = array(
|
||||
"Baltic_Main" => "Erangel",
|
||||
"Chimera_Main" => "Paramo",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue