-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsignup.php
More file actions
executable file
·58 lines (55 loc) · 2.04 KB
/
Copy pathsignup.php
File metadata and controls
executable file
·58 lines (55 loc) · 2.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign Up</title>
</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'] == 'invalidname_and_email'){
echo "<p>Invalid Name and E-mail Id!</p>";
}
else if($_GET['error'] == 'invalidname'){
echo "<p>Invalid Name!</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>";
}*/
else if($_GET['error'] == 'sqlerror'){
echo "<p>Some unknown error occurred!</p>";
}
}
?>
<h3 class="heading"> Sign Up </h3>
<section class="entry">
<form action="includes/fetchstudent_details.inc.php" method="post" class="left">
Roll Number:<br><input type = "number" name = "rollno" placeholder ="002X107010XX"><br><br>
<button class="submit-buttons" type="submit" name="signupfetch-submit">Register</button> 
<a href="login.php" class="right">Already have an account?</a>
</form>
</section>
</div>
<?php
require "footer.php";
?>
</body>
</html>