-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrmforgotpassword.php
142 lines (113 loc) · 2.26 KB
/
frmforgotpassword.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html>
<head>
<meta name="viewport", initial-scale=1">
<style>
body {font-family: Arial, Helvetica, sans-serif;}
form {border: 3px solid #f1f1f1;}
input[type=text], input[type=password] {
width: 20%;
padding: 5px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
}
button {
background-color: #4CAF50;
color: white;
padding: 12px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 20%;
}
button:hover {
opacity: 0.8;
}
.combo {
}
.cancelbtn {
width: 20%;
padding: 10px 18px;
background-color: #f44336;
}
.imgcontainer {
text-align: center;
margin: 24px 0 12px 0;
}
img.avatar {
width: 40%;
border-radius: 50%;
}
.container {
padding: 10px;
}
.myLogo{
width: 60px;
height: 60px;
margin-top: -10px;
}
span.psw {
float: right;
padding-top: 16px;
}
/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
span.psw {
display: block;
float: none;
}
.cancelbtn {
width: 100%;
}
}
.footer {
position: absolute;
right: 0;
bottom: 0;
left: 0;
padding: 1rem;
background-color: #ffa31a;
text-align: center;
}
</style>
</head>
<body">
<?php
include("header.php");
?>
<center>
<form action="sendmail.php" method="post" name="formreg">
<div class="container">
<input type="hidden" name="Empname">
<input type="text" placeholder="Email" onfocusout="ValidateEmail(document.formreg.emailAdd)" id="emailAdd" name="emailAdd" required>
<font color=red>*</font>
<br>
<button type="submit" name="submit" id="Submit">Reset Password</button><br>
<button type="reset" name="reset" class="cancelbtn">Cancel</button>
<br>
<br>
</div>
</form>
</center>
</body>
</html>
<script>
function ValidateEmail(input) {
var validRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
if (input.value.match(validRegex)) {
// alert("Valid email address!");
// document.formreg.emailAdd.focus();
return true;
} else {
alert("Invalid email address!");
document.getElementById('emailAdd').value = " ";
document.formreg.emailAdd.focus();
return false;
}
}
</script>
<?php
include("footer.php")
?>