-
Notifications
You must be signed in to change notification settings - Fork 18
/
Add Person.php
86 lines (72 loc) · 1.81 KB
/
Add Person.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
<?php
session_start();
$_SESSION["tab"] = "Add Person";
if($_SESSION["login"] != 1)
echo '<h2>Access denied!!!</h2>';
else{
include_once('header.php');
?>
<form name="addPerson" action = "addPerson.php" method = "POST">
<h2>New Registration</h2>
<br>
<?php
if(isset($_SESSION["entry_error"])){
echo "<p class='error'>" .$_SESSION["entry_error"]. "</p>";
unset($_SESSION["entry_error"]);
}
?>
<p>
<label>Name: </label>
<br>
<input type = "text" name = "name" class="input" />
</p>
<p>
<label>Phone Number: </label>
<br>
<input type = "Number" name = "phone" maxlength=10 class="input" required />
</p>
<p>
<label>Gender:</label><br>
<input type="radio" id="male" name="gender" value="m" required>
<label for="male">Male</label><br>
<input type="radio" id="female" name="gender" value="f" required>
<label for="female" >Female</label><br>
<input type="radio" id="other" name="gender" value="o" required>
<label for="other" >Other</label>
</p>
<p>
<label>Date of birth: </label>
<br>
<input type = "date" name = "dob" class="input" required/>
</p>
<p>
<label>Blood Group:</label>
<br>
<select name="blood_group" class="input" required>
<option value="A+">A+</option>
<option value="A-">A-</option>
<option value="B+">B+</option>
<option value="B-">B-</option>
<option value="O+">O+</option>
<option value="O-">O-</option>
<option value="AB+">AB+</option>
<option value="AB-">AB-</option>
</select>
</p>
<p>
<label>Address:</label><br>
<textarea rows="5" cols="30" name="address" class="input area" required></textarea>
</p>
<p>
<label>Medical Issues(if any):</label>
<br>
<textarea rows="5" cols="30" name="med_issues" class="input area"></textarea>
</p>
<p>
<button class="btn">Register</button>
</p>
</form>
<?php
include_once('footer.php');
}
?>