-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregistration.php
84 lines (78 loc) · 3.23 KB
/
registration.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!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">
<title>Registration</title>
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
<style>
form {
background: #EBF5FB;
padding: 15px;
box-shadow: 0px 0px 15px 0px;
border-radius: 10px;
}
body{
background: rgb(68,151,200);
background: linear-gradient(90deg, rgba(68,151,200,1) 0%, rgba(169,202,222,1) 44%, rgba(72,152,168,1) 100%);
}
.logo img{
width:20%;
height:20%;
}
span{
color: red;
font-size: smaller;
}
</style>
</head>
<body>
<div class="container-fluid">
<div class="row justify-content-center mt-5">
<div class="col-lg-4 col-md-6 col-sm-12">
<form action="insert.php" method="post" onsubmit="return formValidation()">
<div class="logo mb-5 d-flex justify-content-center">
<img src="Images/Blue_Code.png" alt="logo">
</div>
<div class="mb-3 text-center">
<h4>Registration</h4>
</div>
<div class="mb-3">
<label for="fname">Username:</label>
<input type="text" class="form-control" name="ruser_name" id="ifname">
<span id="efname"></span>
</div>
<div class="mb-3">
<label for="pass">Password:</label>
<input type="password" class="form-control" name="rpassword" id="ipass">
<span id="epass"></span>
</div>
<div class="mb-3">
<label for="cpass">Confirm Password:</label>
<input type="password" class="form-control" name="rcon_pass" id="iconfirm-pass">
<span id="econfirm-pass"></span>
</div>
<div class="mb-3">
<label for="email">Email:</label>
<input type="email" class="form-control" name="remail" id="iemail">
<span id="e-email"></span>
</div>
<div class="mb-3">
<label for="mobile">Phone:</label>
<input type="text" class="form-control" name="rphone" id="imob">
<span id="emob"></span>
</div>
<button type="Register" class="btn btn-primary col-12">Register</button>
<div class="text-end mt-1">
Already have an account?<a class="text-decoration-none" href="index.php"> Login</a>
</div>
</form>
</div>
</div>
</div>
<!-- add javascript file -->
<script src="JS/reg_validation.js"></script>
</body>
</html>