-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstudentsignup.php
132 lines (96 loc) · 1.93 KB
/
studentsignup.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
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
129
130
131
<?php session_start(); ?>
<!DOCTYPE HTML>
<html>
<head>
<title>
STUDENT SIGNUP
</title>
<link rel="stylesheet" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="w3.css">
<link rel="stylesheet" href="w3-theme-black.css">
<style>
body {margin:0;}
.topnav {
overflow: hidden;
background-color: #333;
}
.topnav a {
float: left;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.topnav a:hover {
background-color: #ddd;
color: black;
}
.topnav a.active {
background-color: #4CAF50;
color: white;
}
.mainbox {
float: right;
background-color: green;
width: 50%;
border: 5px solid blue;
padding: 25px;
margin: 25px;
margin-right: 300px;
box-shadow: 5px 6px 7px;
padding-left: 80px;
padding-right: 80px;
}
.leftbox {
float: left;
background-color: red;
width: 15%;
border: 5px solid black;
padding: 25px;
margin: 25px;
box-shadow: 5px 6px 7px;
}
</style>
</head>
<body>
<div style="text-align: center;">
<h2>STUDENT SIGN UP</h2>
</div>
<?php
echo $_SESSION['sname'];
echo $_SESSION['semail'];
?>
<fieldset>
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
<H3>
<table>
<tr>
<td>Roll No:</td>
<td><input type="text" name="work_name"></td>
</tr>
<tr>
<td>Contact Number:</td>
<td><input type="text" name="duration"> </td>
</tr>
</table>
</H3>
<input type="submit" value="Submit" name="Submit">
</form>
</fieldset>
<?php
if (isset($_POST['Submit'])) {
echo $_SESSION['sname'];
echo $_SESSION['semail'];
}
//$stmt = $conn->prepare("INSERT INTO Student (accountantid, name, password) VALUES (?, ?, ?)");
//$stmt->bind_param("sss", $accountantid, $name, $password);
// set parameters and execute
//$accountantid = 'acc1';
//$name = 'accname1';
//$password='acc1udd';
//$stmt->execute();
?>
</body>
</html>