-
Notifications
You must be signed in to change notification settings - Fork 1
/
add_student.php
47 lines (39 loc) · 1.04 KB
/
add_student.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
<?php
session_start();
if (isset($_SESSION['username']) && isset($_SESSION['password'])) {
# code...
echo "
<html>
<form name = 'addstudent' action = 'add_student_data.php' method ='POST'>
<head>
<link rel='stylesheet' type='text/css' href='bootstrap.css'>
</head>
<body>
<form role='form' class='center-block'>
<div class = 'col-md-4 col-md-offset-4'>
<div class ='form-group'>
<label for = 'rollno'>Roll No:</label>
<input type = 'text' class = 'form-control ' name = 'rollno'>
</div>
<div class =form-group>
<label for = 'Name'>Name:</label>
<input type = 'text' class = 'form-control' name = 'name'>
</div>
<div class =form-group>
<label for = 'Name'>Class:</label>
<select class='form-control' name='class'>
<option value='class10'>class 10</option>
<option value='class12'>class 12</option>
</select>
<div class = form-group>
<button type='submit' class='btn btn-primary'>Add Student</button><br>
</div>
</div>
</div>
</form>
</body> ";
}
else
{
require 'redirect_login.php';
}