-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathholdOprettelseTest.php
43 lines (34 loc) · 1.1 KB
/
holdOprettelseTest.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
<?php
include "header.php";
$line = "";
if(isset($_GET['error'])) {
if ($_GET['error'] == "name") {
$line .= "A team with this name already exists";
}
if ($_GET['error'] == "dup") {
$line .= "The same player cant hold multiple spots on a team";
}
if ($_GET['error'] == "nous") {
$line .= "You tried to add a user that does not exist";
}
}
?>
<h1>Test</h1>
<div class="box">
<div class="secondBox">
<h2>Create team:</h2>
<form action="teamregister.php" method="POST">
Team name: <br><input type="text" name="teamName" required> <br><br>
Team member id: <br><input type="text" name="id1" required> <br>
Team member id: <br><input type="text" name="id2"> <br>
Team member id: <br><input type="text" name="id3"> <br>
Team member id: <br><input type="text" name="id4"> <br>
Team member id: <br><input type="text" name="id5"> <br>
Team member id: <br><input type="text" name="id6"> <br>
<button type="submit" value="Create">Create</button>
<button type="submit" value="Cancel">Cancel</button>
</form>
<?php
echo $line;
include "footer.php";
?>