-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmission.php
More file actions
128 lines (110 loc) · 5.58 KB
/
admission.php
File metadata and controls
128 lines (110 loc) · 5.58 KB
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
<?php
include("connect.php");
$status = "";
if (isset($_POST['id']) && $_POST['id'] == 1) {
$name = $_REQUEST['name'];
$father_name = $_REQUEST['father_name'];
$mother_name = $_REQUEST['mother_name'];
$mobile = $_REQUEST['mobile'];
$email = $_REQUEST['email'];
$address = $_REQUEST['address'];
$city = $_REQUEST['city'];
$department = $_REQUEST['department'];
$ins_query = "insert into admission
(name,father_name,mother_name,mobile,email,address,city,department)values
('$name','$father_name','$mother_name','$mobile','$email','$address','$city','$department')";
mysqli_query($con, $ins_query)
or die(mysqli_error($con));
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Click for admission</title>
<link rel="stylesheet" href="css/style.css" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
<link href="fontawesome-free-6.4.0-web/css/all.css" rel="stylesheet">
<style>
.myform {
display: flex;
justify-content: center;
border-radius: 40px 40px;
margin: 50px 350px;
background-color: #f9f8f8;
}
.myform h1 {
padding-bottom: 10px;
padding-top: 10px;
}
.myform label {
font-size: 20px;
font-weight: 600;
}
.tabledata {
padding-top: 10px;
padding-bottom: 10px;
padding-right: 40px;
}
#inputbox {
width: 110%;
}
</style>
</head>
<body>
<div class="myform">
<form name="form" method="post" action="modes.php">
<input type="hidden" name="id" value="1" />
<h1 style="font-family: Algerian;" align="center">New Admission</h1></br>
<table>
<tr>
<td class="tabledata"><label for="name">Name:</label></td>
<td class="tabledata"><input id="inputbox" type="text" name="name" placeholder="Enter your Name" required /></td>
</tr>
<tr>
<td class="tabledata"> <label for="father_name">Father Name:</label></td>
<td class="tabledata"> <input id="inputbox" type="text" name="father_name" placeholder="Enter your Father Name" required /></td>
</tr>
<tr>
<td class="tabledata"> <label for="mother_name">Mother Name:</label></td>
<td class="tabledata"><input id="inputbox" type="text" name="mother_name" placeholder="Enter your Mother Name" required /></td>
</tr>
<tr>
<td class="tabledata"><label for="mobile">Mobile:</label></td>
<td class="tabledata"><input id="inputbox" type="number" name="mobile" placeholder="Enter your Mobile Number" required /></td>
</tr>
<tr>
<td class="tabledata"><label for="email">Email:</label></td>
<td class="tabledata"><input id="inputbox" type="email" name="email" placeholder="Enter your Email" required /></td>
</tr>
<tr>
<td class="tabledata"><label for="address">Address:</label></td>
<td class="tabledata"><input id="inputbox" type="text" name="address" placeholder="Enter your Address" required /></td>
</tr>
<tr>
<td class="tabledata"> <label for="city">City:</label></td>
<td class="tabledata"><input id="inputbox" type="text" name="city" placeholder="Enter your City" required /></td>
</tr>
<tr>
<td class="tabledata"><label for="department">Department:</label></td>
<td class="tabledata"><select id="inputbox" name="department" id="">
<option value="">Select department</option>
<option value="aa(n)">Architecture Assistantship (Normal)</option>
<option value="cse(n)">Computer Science & Engg. (Normal)</option>
<option value="ece(n)">Electronics & Comm. Engg. (Normal) </option>
<option value="mlt(n)">Medical Lab. Technology (Normal) </option>
<option value="mop(n)">Modern Office Practice (Normal) </option>
<option value="cse(l)">Computer Science & Engg. (Leet) </option>
<option value="ece(l)">Electronics & Comm. Engg. (Leet) </option>
<option value="mlt(l)">Medical Lab. Technology (Leet) </option>
</select></td>
</tr>
</table>
<br>
<p><a href="try3.php?id=<?php echo $row["id"]; ?>"><input style=" margin:0px 90px; padding:10px 90px;" class="btn btn-lg btn-success" name="uploadphoto" type="submit" value="SUBMIT" /> </a></p>
</form>
</div>
</body>
</html>