-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdetailent.php
More file actions
61 lines (46 loc) · 1.78 KB
/
detailent.php
File metadata and controls
61 lines (46 loc) · 1.78 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
<?php include 'admserver.php'; ?>
<!DOCTYPE html>
<html>
<head>
<title>detailent</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=DM+Sans&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="detailent.css">
</head>
<body>
<?php if(isset($_SESSION['admin'])) : ?>
<h2 style="text-align: center">
enter details of student</h2>
<div style="text-align: center;">
<h2><?php echo "welcome ";
echo$_SESSION['admin'];?></h2>
<form action="detailent.php" method="POST">
<?php include('erreo.php');?>
<input id="p" type="text" name="sname" placeholder="student name" required>
<br>
<input id="p" type="text" name="pname" placeholder="parent name" required>
<br>
<input id="p" type="email" name="email" placeholder="email of student" required>
<br>
<input id="p" type="text" name="regno" placeholder="registration number" minlength="8" maxlength="8" pattern="\d{8}" title="enter a valid registration number" required>
<br>
<input id="p" type="text" name="dept" placeholder="student dept" required>
<br>
<input id="p" type="text" name="smob" placeholder="student mobile" required>
<br>
<br>
<input id="p" type="text" name="pmob" placeholder="parent mobile">
<br>
<input id="p" type="date" name="dob" placeholder="dob">
<br>
<button class="button button5" id="p" type="submit" name="submitd">submit</button>
</form>
<form action="detailent.php" method="POST">
<button name="home" class="button btn">home page</button>
<button name="logouta" type="logout" class="button button5">
logout
</button></form>
</div>
<?php endif ?>
</body>
</html>