-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathedit_match.php
More file actions
17 lines (14 loc) · 806 Bytes
/
edit_match.php
File metadata and controls
17 lines (14 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
$output = '';
$natj = $_POST['liga'];
$f = $_POST['gk'];
$output .="Match: <input type='text' name='h" . $natj . "' placeholder='home'> vs <input type='text' name='aw" . $natj . "' placeholder='away'><br>
Goals: <input type='number' name='g" . $natj . "' min='0' value='0'><br>
Assists: <input type='number' name='a" . $natj . "' min='0' value='0'><br>";
if( $f == 1 ) $output .= "Saves: <input type='number' name='s" . $natj . "' min='0' value='0'><br>";
$output .= "Yellow cards: <input type='number' name='y" . $natj . "' min='0' max='2' value='0'><br>
Red cards: <input type='number' name='r" . $natj . "' min='0' max='1' value='0'><br>
Played: <input type='number' name='p" . $natj . "' min='0' max='1' value='0'><br>
";
echo $output;
?>