-
Notifications
You must be signed in to change notification settings - Fork 12
/
signup-user.php
64 lines (63 loc) · 2.85 KB
/
signup-user.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 "controllerUserData.php"; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Signup</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-4 offset-md-4 form">
<form action="signup-user.php" method="POST" autocomplete="">
<h2 class="text-center">Signup</h2>
<p class="text-center">It's quick and easy.</p>
<?php
if(count($errors) == 1){
?>
<div class="alert alert-danger text-center">
<?php
foreach($errors as $showerror){
echo $showerror;
}
?>
</div>
<?php
}elseif(count($errors) > 1){
?>
<div class="alert alert-danger">
<?php
foreach($errors as $showerror){
?>
<li><?php echo $showerror; ?></li>
<?php
}
?>
</div>
<?php
}
?>
<div class="form-group mt-3">
<input class="form-control" type="text" name="name" placeholder="Full Name" required value="<?php echo $name ?>">
</div>
<div class="form-group mt-3">
<input class="form-control" type="email" name="email" placeholder="Email Address" required value="<?php echo $email ?>">
</div>
<div class="form-group mt-3">
<input class="form-control" type="password" name="password" placeholder="Password" required>
</div>
<div class="form-group mt-3">
<input class="form-control" type="password" name="cpassword" placeholder="Confirm password" required>
</div>
<div class="form-group mt-3">
<input class="form-control button" type="submit" name="signup" value="Signup">
</div>
<div class="link login-link text-center mt-1">Already a member? <a href="login-user.php">Login here</a></div>
</form>
</div>
</div>
</div>
</body>
</html>