-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsignup.php
More file actions
91 lines (81 loc) · 3.76 KB
/
signup.php
File metadata and controls
91 lines (81 loc) · 3.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="./images/PERISTERALOGO2.jpg" type="image/x-icon">
<title>Peristera Technologies</title>
<link rel="stylesheet" href="css/all.css">
<link rel="stylesheet" href="./css/boot4.css">
<link rel="stylesheet" href="css/reg.css">
</head>
<body>
<div class="wrapper">
<section class="form signup">
<form action="#" id="form_sign">
<div class="error-txt"></div>
<div class="success-txt bg-success p-2 text-light text-center rounded-sm" style="display: none;"></div>
<div class="name-details">
<div class="field input">
<label>First Name</label>
<input type="text" name="fname" placeholder="First Name" class="form-control" required>
</div>
<div class="field input">
<label>Surname</label>
<input type="text" name="lname" class="form-control" placeholder="Surname" required>
</div>
</div>
<div class="field input">
<label>Email Address</label>
<input type="email" name="email" class="form-control" placeholder="Enter your email" required>
</div>
<div class="field input">
<label>Password</label>
<input type="password" autocapitalize="off" autocomplete="off" minlength="6" name="password" id="password" class="form-control" placeholder="Enter your password" required>
<i class="fas fa-eye"></i>
</div>
<div class="field input">
<label>Confirm Password</label>
<input type="password" autocapitalize="off" autocomplete="off" minlength="6" name="confirm_password" class="form-control" placeholder="Confirm password" required>
</div>
<div class="field">
<span class="input-grp"> <input type="checkbox" name="remember" class="checker" id="">
Remember Me</span>
</div>
<div class="field button">
<input type="submit" name="registerBtn" id="register" value="Sign Up">
<img src="./gifs/4 Fading blocks (1).gif" class="img-fluid" id="loader" style="display: none; height: 40px; width:70px" alt="">
</div>
</form>
<div class="link">Already signed up? <a href="login.php">Login Now</a></div>
<div class="link">Already signed up? <a href="index.php">Back to home page</a></div>
</section>
</div>
<script src="./js/jquery3.6.0.js"></script>
<script src="./js/bootstrap4.js"></script>
<script src="./js/hideShow.js"></script>
<script src="./js/reg.js"></script>
<script>
$(document).ready(function() {
$('#register').click(function() {
$.ajax({
type: 'POST',
url: 'reg.php',
data: {
form: $('#form_sign').val()
},
beforeSend: function() {
$('#loader').show();
},
success: function(data) {
$('#register').html(data);
$('#loader').hide();
$('#register').show();
},
});
});
});
</script>
</body>
</html>