-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewpass.php
90 lines (87 loc) · 3.61 KB
/
newpass.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
<?php
session_start();
if(isset($_SESSION["newpass"]))
{
if($_SESSION["newpass"]=="")
header("location:index.php");
}
else{
header("location:index.php");
}
?>
<!DOCTYPE html>
<htm>
<head>
<title>Forgot password</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="logo.png" type="image/png">
<link rel="shortcut icon" href="logo.png" type="image/png">
<meta name="robots" content="index, follow">
<meta name="author" content="Adarsh padukone">
<meta name="copyright" content="All rights reserved">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="content-language" content="en">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="adarsh,adarshpadukone,ap,jssateb,jss collge,blood glucose,glucometer,non invasive,monitoring" />
<meta name="description" content="Non-invasive Blood Glucose Monitoring system. Developed by Students of Electronics and Communication Engineering , JSSATE Bangalore" />
<script src="js/jquery.min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css";>
<script>
$(document).ready(function(){
$("#bt").click(function() {
var pass = $("#pass").val();
var pass2= $("#passr").val();
if(pass==pass2)
{
$("#ft").submit();
}
else
{
$("h3").text("Password doesn't match");
$("#pass").val()="";
$("#passr").val()="";
}
});
});
</script>
</head>
<body class="alert-warning">
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Reset password</a>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-sm-4"></div>
<div class="col-sm-4">
<form action="rp.php" autocomplete="off" id="ft" method="POST">
<div class="form-group">
<h2 class=" text-center">Reset Password</h2>
</div>
<div class="form-group">
<label for="email">Enter Password:</label>
<input type="password" placeholder="Enter Password" class="form-control" id="pass" name="pass" autofocus required>
</div>
<div class="form-group">
<label for="email">Repeat Password :</label>
<input type="Password" placeholder="Repeat Password" class="form-control" id="passr" name="passr" required>
</div>
<div class="form-group">
<input type="button" class="btn btn-success" id="bt" value="Change Password">
<input type="reset" class="btn btn-danger" value="Reset">
</div>
<div class="form-group">
<h3 class="text-center alert-danger" id="h"></h3>
</div>
</form>
</div>
<div class="col-sm-4"></div>
</row>
</div>
</body>
</html>