-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit.php
56 lines (55 loc) · 2.18 KB
/
edit.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
<?php
include 'connect.php';
session_start();
$booking = $_SESSION['booking'];
$team = $_SESSION['team'];
$member = $_SESSION['member'];
$user = $_SESSION['user'];
if($booking != 0)
{
echo "<form action='update.php' method='post'>
<input type='hidden' value=" . $booking . " name='BookingID'><br/>
Booking Category: <select name='BookingCategory' id='BookingCategory'>
<option value='Public'>Public</option>
<option value='Private'>Private</option>
<option value='Team'>Team</option>
</select><br/>
Booking Fee: <input type='text' name='BookingFee'><br/>
Member ID: <input type='text' name='memberIDF'><br/>
Team ID: <input type='text' name='teamIDF'><br/>
<input type='submit' value='Submit'>
</form>";
}
elseif($team != NULL)
{
echo "<form action='update.php' method='post'>
<input type='hidden' value=" . $team . " name='TeamID'><br/>
Team Name: <input type='text' name='TeamName'><br/>
Address: <input type='text' name='Address'><br/>
League: <select name='LeagueIDF' id='LeagueIDF'>
<option value='1' >Premier League</option>
<option value='2' >League 1</option>
</select><br/>
<input type='submit' value='Add'>
</form>";
}
elseif($member != 0)
{
echo "<form action='update.php' method='post'>
<input type='hidden' value=" . $member . " name='MemberID'><br/>
First Name: <input type='text' name='FirstName'>
Surname: <input type='text' name='SurName'><br/>
Date of birth(YYYY-MM-DD): <input type='text' name='DOB'><br/>
Address: <input type='text' name='Address'><br/>
Postcode: <input type='text' name='PostCode'><br/>
Phone Number: <input type='text' name='PhoneNumber'><br/>
Payment Method: <select name='PaymentMethod' id='PaymentMethod'>
<option value='Direct Debit' >Direct Debit</option>
<option value='Cash'>Cash</option>
<option value='Check'>Check</option>
</select><br/>
Years of driving experience: <input type='text' name='DrivingEx'><br/>
<input type='submit' value='Add'>
</form>";
}
?>