Notice: Undefined index:
Notice: Undefined index: submit1 in /var/www/vhosts/battle-hq.com/subdomains/leagues/httpdocs/graw/functions/report_battle.php on line 83
Notice: Undefined index: submit2 in /var/www/vhosts/battle-hq.com/subdomains/leagues/httpdocs/graw/functions/report_battle.php on line 96
Kan iemand mij uit de brand helpen?
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?php
require_once("layout.php");
require_once("./config/config.php");
top();
if(isset($_POST['submit'])){
$option=$_POST['type'];
tableheader("<font class='menutitle'>Select Loser</font>");
//Single
if($_POST['type'] == "Single Battle"){
echo' <br><center>';
echo' <form method="post">';
echo' Select Loser:';
echo' <br><br>';
echo' <select name="loser" id="loser">';
echo' <option value="Loser 1">SLoser 1</option>';
echo' </select>';
echo' <br><br>';
echo' <input name="submit1" type="submit" id="submit1" value="Next" />';
echo' </form></center>';
tablefooter();
}
//Unit
elseif($_POST['type'] == "Unit Battle"){
echo' <br><center>';
echo' <form method="post">';
echo' Select losing team:';
echo' <br><br>';
echo' <select name="losingteam" id="losingteam">';
echo' <option value="Team 1">Team 1</option>';
echo' </select>';
echo' <br><br>';
echo' <input name="submit2" type="submit" id="submit2" value="Next" />';
echo' </form></center>';
tablefooter();
}
//Allie
elseif($_POST['type'] == "Allie Battle"){
echo' <br><center>';
echo' <form method="post">';
//Losing select
echo' Losing team:';
echo' <br><br>';
echo' <select name="losingteam" id="losingteam">';
echo' <option value="Team 1">Team 1</option>';
echo' </select>';
echo' <br><br>';
//Losing allie select
echo' Losers allie:';
echo' <br><br>';
echo' <select name="losingallie" id="losingallie">';
echo' <option value="None">None</option>';
echo' <option value="Team 2">Team 2</option>';
echo' </select>';
echo' <br><br>';
//Winner allie select
echo' Winners allie:';
echo' <br><br>';
echo' <select name="winnerallie" id="winnerallie">';
echo' <option value="None">None</option>';
echo' <option value="Team 4">Team 4</option>';
echo' </select>';
echo' <br><br>';
//Submit
echo' <input name="submit3" type="submit" id="submit3" value="Next" />';
echo' </form></center>';
tablefooter();
}
}
//single submit
elseif($_POST['submit1']){
tableheader("<font class='menutitle'>Enter Kills</font>");
echo' <br><center>';
echo' <form method="post">';
echo' Test single';
echo' </form></center>';
tablefooter();
}
//unit submit
elseif($_POST['submit2']){
tableheader("<font class='menutitle'>Enter Kills</font>");
echo' <br><center>';
echo' <form method="post">';
echo' Test unit';
echo' </form></center>';
tablefooter();
}
//alliesubmit
elseif($_POST['submit3']){
tableheader("<font class='menutitle'>Enter Kills</font>");
echo' <br><center>';
echo' <form method="post">';
echo' Test alliee';
echo' </form></center>';
tablefooter();
}
else{
tableheader("<font class='menutitle'>Select Battle Type</font>");
echo' <br><center>';
echo' <form method="post">';
echo' Select battle type:';
echo' <br><br>';
echo' <select name="type" id="type">';
echo' <option value="Single Battle">Single Battle</option>';
echo' <option value="Unit Battle">Unit Battle</option>';
echo' <option value="Allie Battle">Allie Battle</option>';
echo' </select>';
echo' <br><br>';
echo' <input name="submit" type="submit" id="submit" value="Next" />';
echo' </form></center>';
tablefooter();
}
bottum();
?>
require_once("layout.php");
require_once("./config/config.php");
top();
if(isset($_POST['submit'])){
$option=$_POST['type'];
tableheader("<font class='menutitle'>Select Loser</font>");
//Single
if($_POST['type'] == "Single Battle"){
echo' <br><center>';
echo' <form method="post">';
echo' Select Loser:';
echo' <br><br>';
echo' <select name="loser" id="loser">';
echo' <option value="Loser 1">SLoser 1</option>';
echo' </select>';
echo' <br><br>';
echo' <input name="submit1" type="submit" id="submit1" value="Next" />';
echo' </form></center>';
tablefooter();
}
//Unit
elseif($_POST['type'] == "Unit Battle"){
echo' <br><center>';
echo' <form method="post">';
echo' Select losing team:';
echo' <br><br>';
echo' <select name="losingteam" id="losingteam">';
echo' <option value="Team 1">Team 1</option>';
echo' </select>';
echo' <br><br>';
echo' <input name="submit2" type="submit" id="submit2" value="Next" />';
echo' </form></center>';
tablefooter();
}
//Allie
elseif($_POST['type'] == "Allie Battle"){
echo' <br><center>';
echo' <form method="post">';
//Losing select
echo' Losing team:';
echo' <br><br>';
echo' <select name="losingteam" id="losingteam">';
echo' <option value="Team 1">Team 1</option>';
echo' </select>';
echo' <br><br>';
//Losing allie select
echo' Losers allie:';
echo' <br><br>';
echo' <select name="losingallie" id="losingallie">';
echo' <option value="None">None</option>';
echo' <option value="Team 2">Team 2</option>';
echo' </select>';
echo' <br><br>';
//Winner allie select
echo' Winners allie:';
echo' <br><br>';
echo' <select name="winnerallie" id="winnerallie">';
echo' <option value="None">None</option>';
echo' <option value="Team 4">Team 4</option>';
echo' </select>';
echo' <br><br>';
//Submit
echo' <input name="submit3" type="submit" id="submit3" value="Next" />';
echo' </form></center>';
tablefooter();
}
}
//single submit
elseif($_POST['submit1']){
tableheader("<font class='menutitle'>Enter Kills</font>");
echo' <br><center>';
echo' <form method="post">';
echo' Test single';
echo' </form></center>';
tablefooter();
}
//unit submit
elseif($_POST['submit2']){
tableheader("<font class='menutitle'>Enter Kills</font>");
echo' <br><center>';
echo' <form method="post">';
echo' Test unit';
echo' </form></center>';
tablefooter();
}
//alliesubmit
elseif($_POST['submit3']){
tableheader("<font class='menutitle'>Enter Kills</font>");
echo' <br><center>';
echo' <form method="post">';
echo' Test alliee';
echo' </form></center>';
tablefooter();
}
else{
tableheader("<font class='menutitle'>Select Battle Type</font>");
echo' <br><center>';
echo' <form method="post">';
echo' Select battle type:';
echo' <br><br>';
echo' <select name="type" id="type">';
echo' <option value="Single Battle">Single Battle</option>';
echo' <option value="Unit Battle">Unit Battle</option>';
echo' <option value="Allie Battle">Allie Battle</option>';
echo' </select>';
echo' <br><br>';
echo' <input name="submit" type="submit" id="submit" value="Next" />';
echo' </form></center>';
tablefooter();
}
bottum();
?>
elseif($_POST['submit1']){
Gebruik ook hier isset().
idd, zeer stomme fout. Bedankt