-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.php
64 lines (51 loc) · 2.42 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php require_once 'controllers/authController.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<!-- Our css file -->
<link href="css/mystyle.css" rel="stylesheet" >
<title>Register</title>
</head>
<body class = "background french_flag">
<div class="container">
<div class="row">
<div class ="col-md-6 offset-md-6 form-div">
<form action="signup.php" method="post">
<h3 class = "text-center">Register</h3>
<?php if(count($errors) > 0): ?>
<div class="alert alert-danger">
<?php foreach($errors as $error): ?>
<li><?php echo $error ?></li>
<?php endforeach; ?>
</div>
<?php endif; ?>
<div class="form-group">
<label for="username">Username</label>
<input type="text" name = "username" value = "<?php echo $username; ?>"class="form-control form-control-lg">
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" name = "email" value = "<?php echo $email; ?>"class="form-control form-control-lg">
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" name = "password" class="form-control form-control-lg">
</div>
<div class="form-group">
<label for="passwordConf">Confirm Password</label>
<input type="password" name = "passwordConf" class="form-control form-control-lg">
</div>
<div class="form-group">
<button type="submit" name ="signup-btn" class ="btn btn-primary btn-block btn-lg">Sign Up</button>
</div>
<a href="login.php" class = "btn btn-info btn-block">Sign In</a>
</form>
</div>
</div>
</div>
</body>
</html>