-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathfetchstudent.php
More file actions
147 lines (114 loc) · 4.06 KB
/
Copy pathfetchstudent.php
File metadata and controls
147 lines (114 loc) · 4.06 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Check your details</title>
<style>
#student_notregistered_div
{
<?php
if($_SESSION["result"]==0)
{
echo 'display:block';
}
else
{
echo 'display:none';
}
?>
}
#student_registered_div
{
<?php
if($_SESSION["result"]==0||$_SESSION["gotologin"]==1)
{
echo 'display:none';
}
else
{
echo 'display:block';
}
?>
}
#student_registered_gotologin_div
{
<?php
if($_SESSION["gotologin"]==1)
{
echo 'display:block';
}
else
{
echo 'display:none';
}
?>
}
</style>
</head>
<body>
<?php
require "header.php";
require "prevent_logout.php";
?>
<br>
<div class="container">
<?php
if(isset($_GET['error']))
{
if($_GET['error'] == 'emptyfields')
{
echo "<p>No field can remain empty!</p>";
}
else if($_GET['error'] == 'invalidemail')
{
echo "<p>Invalid E-mail Id!</p>";
}
else if($_GET['error'] == 'sqlerror')
{
echo "<p>Some unknown error occurred!</p>";
}
else if($_GET['error'] == 'passwordcheck')
{
echo "<p>Ensure that the entered passwords are same!</p>";
}
}
?>
<div id="student_registered_div" style="display:<?=$_SESSION["registerdiv"]?>;">
<h3 class="heading">Check your details and Complete Registration</h3>
<section class="entry">
<form action="includes/signup.inc.php" method="post" class="left">
<p> Roll No : <?=$_SESSION["show_rollno"]?></p>
<p> Name : <?=$_SESSION["Full_name"]?></p>
<!--<p> CMS code : <?=$_SESSION["Course_code"]?></p>-->
<p> Course Name : <?=$_SESSION["course_name"]?></p>
<p> Department of <?=$_SESSION["department"]?> ,<?=$_SESSION["faculty"]?></p>
<h4>If the above details are correct then enter the following and press the Sign Up button otherwise contact system administrator.</h4>
E-mail:<br><input type = "email" name = "e-mail" ><br><br>
Enter Password:<br><input type = "password" name = "pwd"><br><br>
Re-Enter Password:<br><input type = "password" name = "rpwd"><br><br>
<button class="submit-buttons" type = "submit" name="signup-submit">
<b>Sign Up</b></button> 
</form>
</section>
</div>
<div id="student_registered_gotologin_div" style="display:<?= $_SESSION["gologindiv"]?>;">
<h3 class="heading">Registration Denied !</h3>
<section class="entry">
<h4>You have already registered please login using your credentials</h4>
<a href="login.php" class="right">Go to Login</a>
</section>
</div>
<div id="student_notregistered_div" style="display:<?=$_SESSION["not_registerdiv"]?>;">
<h3 class="heading">Registration Denied !</h3>
<section class="entry">
<h4>Student Details Not found in database please contact System Admin</h4>
<a href="login.php" class="right">Go to Login</a>
</section>
</div>
</div>
<?php
require "footer.php";
?>
</body>
</html>