-
Notifications
You must be signed in to change notification settings - Fork 1
/
forgethtml.php
103 lines (90 loc) · 3.17 KB
/
forgethtml.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html lang="en">
<head>
<title>Register Free</title>
<link href="css/projlogin.css" type="text/css" rel="stylesheet">
<link href="css/projnavcommom.css" type="text/css" rel="stylesheet">
</head>
<body>
<?php
// include 'projnavcomhtml.php';
?>
<header>
<div id="nav">
<nav>
<ul>
<li><a>Pentest</a></li>
<li class="oonn" style="float:right"><a href="index.php">SignIn</a></li>
<li class="" style="float:right" ><a href="projregisterhtml.php">SignUp</a></li>
</ul>
</nav>
</div>
</header>
<div id="BODY">
<h1>Lost Password ?</h1>
<p>If you have forgotten your password, you can use this form to reset your password. You will receive an email with instructions. If you have forgotten your username, enter your email below and both your username and a password will be reset.</p>
<br><br>
<form method="POST" action="projforget.php">
<div id="form">
<div class="right">
<input type="email" id="email" name="email" class="form-control"
placeholder="Enter your email id" required="required">
<span id="Error1" class="Error"></span>
</div>
<!-- <br>-->
<div>
<input type="submit" id="submit" name="submit" class="form-control"
value="Reset">
</div>
<br>
<hr>
<br>
<span>Already a pentest member?<a href="index.php"> SignIn</a></span>
<br><br>
<span>Not a pentest member<a href="projregisterhtml.php"> SignUp</a></span>
</div>
</form>
</div>
<div>
<footer>
<spam>@copyright_Pentestbob</spam>
</footer>
</div>
<script>
function checkEmail(e){
var element=e.target;
var mssg=document.getElementById('Error1');
if(element.value.length>100){
element.value="";
mssg.textContent="*Too big email id.";
return false;
}
if(/[^.@_a-zA-Z0-9]/.test(element.value)){
element.value="";
mssg.textContent="*Invalid! charcter used.";
return false;
}
if(!/[@]/.test(element.value)){
element.value="";
mssg.textContent="* '@' missing.";
return false;
}
if(!/[.]/.test(element.value)){
element.value="";
mssg.textContent="*DOT . missing.";
return false;
}
if(!/[a-zA-Z0-9]/.test(element.value)){
element.value="";
mssg.textContent="*Alphabets and numbers are missing.";
return false;
}
mssg.textContent="";
// mssg.textContent="*Correct Format of email has been used.";
return true;
}
var email = document.getElementById("email");
email.addEventListener('blur', checkEmail ,false);
</script>
</body>
</html>