-
Notifications
You must be signed in to change notification settings - Fork 0
/
forgot_password.php
executable file
·91 lines (84 loc) · 3.01 KB
/
forgot_password.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
<?php
require('top.php');
if(isset($_SESSION['USER_LOGIN']) && $_SESSION['USER_LOGIN']=='yes'){
?>
<script>
window.location.href='my_order.php';
</script>
<?php
}
?>
<!-- Start Bradcaump area -->
<div class="ht__bradcaump__area" style="background: rgba(0, 0, 0, 0) url(images/bg/4.jpg) no-repeat scroll center center / cover ;">
<div class="ht__bradcaump__wrap">
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="bradcaump__inner">
<nav class="bradcaump-inner">
<a class="breadcrumb-item" href="index.php">Home</a>
<span class="brd-separetor"><i class="zmdi zmdi-chevron-right"></i></span>
<span class="breadcrumb-item active">Forgot Password</span>
</nav>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Bradcaump area -->
<!-- Start Contact Area -->
<section class="htc__contact__area ptb--100 bg__white">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="contact-form-wrap mt--60">
<div class="col-xs-12">
<div class="contact-title">
<h2 class="title__line--6">Forgot Password</h2>
</div>
</div>
<div class="col-xs-12">
<form id="login-form" method="post">
<div class="single-contact-form">
<div class="contact-box name">
<input type="text" name="email" id="email" placeholder="Your Email*" style="width:100%">
</div>
<span class="field_error" id="email_error"></span>
</div>
<div class="contact-btn">
<button type="button" class="fv-btn" onclick="forgot_password()" id="btn_submit">Submit</button>
</div>
</form>
<div class="form-output login_msg">
<p class="form-messege field_error"></p>
</div>
</div>
</div>
</div>
</div>
</section>
<script>
function forgot_password(){
jQuery('#email_error').html('');
var email=jQuery('#email').val();
if(email==''){
jQuery('#email_error').html('Please enter email id');
}else{
jQuery('#btn_submit').html('Please wait...');
jQuery('#btn_submit').attr('disabled',true);
jQuery.ajax({
url:'forgot_password_submit.php',
type:'post',
data:'email='+email,
success:function(result){
jQuery('#email').val('');
jQuery('#email_error').html(result);
jQuery('#btn_submit').html('Submit');
jQuery('#btn_submit').attr('disabled',false);
}
})
}
}
</script>
<?php require('footer.php')?>