-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
74 lines (71 loc) · 2.49 KB
/
index.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
<!DOCTYPE html>
<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>CelloSec</title>
<link rel="stylesheet" href="css/signup.css" />
</head>
<body>
<form action="php/login.php" method="post"
<div id="data">
<div id="Obj">
<img id="first" src="images/Micro Animations.gif" alt="" />
<!-- <h3>Make Health Care Simpler</h3> -->
<!-- <p id="p1">Get medicine information,order medicines book lab <br> tests & consult doctors online from the comfort <br>of your home.</p> -->
</div>
<div id="Obj">
<h1>Login</h1>
<p id="AJ">
Embrace Your Desires: Discover a World of Endless Choices with Us
</p>
<!-- <input id = "Barsu" placeholder="Enter Email Id or Phone Number"> -->
<div class="input-cont">
<!-- <input type="text"> -->
<input
id="mobile"
type="text"
name="uname"
placeholder="Enter username"
value="<?php echo (isset($_GET['uname']))?$_GET['uname']:"" ?>"
/>
<input id="password" type="password" placeholder="Enter Password" name="pass" />
</div>
<button type="submit">Login</button>
<div id="last">
<p id="Rj1">
New on CelloSec?
<b
><a href="signup.php"><span id="orange">Sign Up</span></a></b
>
</p>
<p id="Dk">Have a corporate account? <b>Click Here</b></p>
<p id="AB">
By logging in, you agree to our <br />
<a href="">Terms and Conditions & Privacy Policy</a>
</p>
<p id="faf"><b>Need Help? Get In Touch</b></p>
</div>
</div>
</div>
</form>
</body>
</html>
<script>
var signupDetails = JSON.parse(localStorage.getItem("signupDetails"));
console.log(signupDetails);
var btn = document.querySelector("button");
btn.addEventListener("click", loginFunction);
function loginFunction() {
var mobile = document.querySelector("#mobile").value;
var password = document.querySelector("#password").value;
console.log(mobile, password);
if (mobile == signupDetails.mobile && password == signupDetails.password) {
console.log("correct");
window.location.href = "./..//Rohit/index.html";
} else {
window.alert("Email or Password Incorrect");
}
}
</script>