-
Notifications
You must be signed in to change notification settings - Fork 0
/
cpsign.html
117 lines (100 loc) · 4.25 KB
/
cpsign.html
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<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>Document</title>
<link rel="stylesheet" href="cpsign.css">
<script src="https://unpkg.com/scrollreveal"></script>
</head>
<body>
<form class="card2" action="cpsign.php" method="post" onsubmit="return signup()" >
<div class="back"><a href="landing.html">Home</a></div>
<label><h1>Create Account</h1></label>
<div class="p"> Please fill the input below here </div><br><br><br>
<img src="pro.png" alt="pro" width="40px" ; height="40px">
<input type="text" name="text" placeholder="FULL NAME" id="fulln"><br>
<span id="full" style="color:red;"></span><br>
<img src="mail.png" alt="mail" width="40px" ; height="40px">
<input type="text" name="email" placeholder="EMAIL" id="mail"><br>
<span id="user" style="color:red;"></span><br>
<img src="password.png" alt="password" width="40px" ; height="40px">
<input type="password" name="password" placeholder="PASSWORD" id="pas"><br>
<span id="pass" style="color:red;"></span><br>
<img src="password.png" alt="pass" width="40px" ; height="40px">
<input type="password" name="pass" placeholder="CONFIRM PASSWORD" id="cpassword">
<span id="cpas" style="color:red;"></span><br>
<input type="submit" name="submit" value="SIGN UP" ><br><br>
Already have a account? <a href="cp.html">Log In</a>
</form>
<!-- <script>
ScrollReveal({
reset: true ,
distance: '60px',
duration: 2500,
delay: 500
});
ScrollReveal().reveal('.card2', { delay: 500, origin: 'bottom' });
ScrollReveal().reveal('.back', { delay: 500, origin: 'left' });
ScrollReveal().reveal('.card2 .h1', '.card2 p', { delay: 500, origin: 'left' });
ScrollReveal().reveal('input', { delay: 500, origin: 'right' });
ScrollReveal().reveal('.card2 img', { delay: 500, origin: 'bottom' });
</script>
<script>
function signup(){
var full=document.getElementById("fulln").value;
if(full==""){
document.getElementById('full').innerHTML="***Please fill this field***";
return false;
}
else{
document.getElementById('full').innerHTML="";
// return false;
}
var email=document.getElementById("mail").value;
if(email==""){
document.getElementById('user').innerHTML="***Please fill this field***";
return false;
}
var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
if(!mailformat.test(email)){
// document.getElementById('user').innerHTML="";
document.getElementById('user').innerHTML="***Please fill valid email address***";
return false;
}
else{
document.getElementById('user').innerHTML="";
}
var decimal= /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^a-zA-Z0-9])(?!.*\s)/;
var pass=document.getElementById("pas").value;
if(pass==""){
document.getElementById('pass').innerHTML="***Please fill this field***";
return false;
}
if(!decimal.test(pass)){
document.getElementById('pass').innerHTML="***password should contain at least one lowercase letter, one uppercase letter, one numeric digit, and one special character";
return false;
}
if(pass.length<6){
document.getElementById('pass').innerHTML="***Please enter atleast 6 chracters***";
return false;
}
else{
document.getElementById('pass').innerHTML="";
}
var cpass=document.getElementById("cpassword").value;
if(cpass==""){
document.getElementById('cpas').innerHTML="***Please fill this field***";
return false;
}
if(pass != cpass){
document.getElementById('cpas').innerHTML="***Passwords do not match***";
return false;
}
else{
document.getElementById('cpas').innerHTML="";
}
}
</script> -->
</body>
</html>