-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathindex.php
79 lines (55 loc) · 2.41 KB
/
index.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
<html>
<head>
<meta charset ="UTF-8">
<link rel="stylesheet" href="index.css">
<script src="jquery-3.3.1.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<title> Student Management System</title>
</head>
<body>
<h3 align="right"><a href="login.php">Admin Login</a></h3>
<h1 align="center"> Welcome To Student Management System</h1>
<form method="post" action="index.php" >
<table style="width:50%;" align="center" border="1">
<tr>
<td colspan="2" align="center">Student Information</td>
</tr>
<tr>
<td>Choose Standard</td>
<td>
<select name="std">
<option value="1">1st</option>
<option value="2">2nd</option>
<option value="3">3rd</option>
<option value="4">4th</option>
<option value="5">5th</option>
<option value="6">6th</option>
<option value="7">7th</option>
<option value="8">8th</option>
<option value="9">9th</option>
<option value="10">10th</option>
<option value="10">11th</option>
<option value="10">12th</option>
</select>
</td>
</tr>
<tr>
<td>Enter Rollno</td>
<td><input type="text" name="rollno"</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="submit" value="Show Info"></td>
</tr>
</table>
</form>
</body>
</html>
<?php
if(isset($_POST['submit'])){
$standard= $_POST['std'];
$rollno = $_POST['rollno'];
include('dbcon.php');
include('function.php');
showdetails($standard,$rollno);
}
?>