-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.php
43 lines (38 loc) · 1.47 KB
/
signup.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
<!DOCTYPE html>
<html lang="en">
<?php include "db.php"; ?>
<?php include "functions.php"; ?>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<title>SignUp</title>
</head>
<body>
<div class="login-page">
<div class="form">
<h2>Sign Up</h2>
<form class="login-form" action="signup.php" method="post">
<input type="text" name="firstname" placeholder="First Name"/>
<input type="text" name="lastname" placeholder="Last Name"/>
<input type="text" name="rollnumber" placeholder="Roll Number"/>
<input type="password" name="password" placeholder="Set Password"/>
<input type="number" name="year" min="1" max="4" placeholder="Year"/>
<input list="branches" name="branch" placeholder="Branch"/>
<datalist id="branches">
<option value="CSE">
<option value="EC">
<option value="EE">
<option value="ME">
<option value="IC">
</datalist>
<input type="text" name="codeforcesId" placeholder="Codeforces ID"/>
<input type="text" name="codechefId" placeholder="Codechef ID"/>
<button name="submit" type="submit">SignUp</button>
<p class="message">Already have an account?<a href="login.php">Login</a></p>
</form>
<?php AddData(); ?>
</div>
</div>
</body>
</html>