forked from naveen-770/CelloSec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.php
80 lines (67 loc) · 2.35 KB
/
signup.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
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
?>
<!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>SignUp</title>
<link rel="stylesheet" href="css/signup.css" />
</head>
<body>
<form class="shadow w-450 p-3"
action="php/signup.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>Create Account</h1>
<div class="input-cont">
<input id="user" type="text" class="form-control" placeholder="Enter User Name" name="uname" value="<?php echo (isset($_GET['uname']))?$_GET['uname']:"" ?>">
<input id="password" class="form-control" type="password" placeholder="Create Password" name="pass"/>
<p></p>
</div>
<button id="Dj" type="submit">Sign Up</button>
<div id="last">
<p id="Rj">
Have an account?
<b
><a href="index.php"><span id="orange">Login</span></a></b
>
</p>
<p id="Dk">For corporate Sign up, <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>
</div>
<!-- <p id = "faf"><b>Need Help? Get In Touch</b></p> -->
</div>
</div>
</form>
</body>
</html>
<script>
var btn = document.querySelector("button");
btn.addEventListener("click", loginFunction);
function loginFunction() {
var user = document.querySelector("#user").value;
var mobile = document.querySelector("#mobile").value;
var password = document.querySelector("#password").value;
var obj = {
user: user,
password: password,
mobile: mobile,
};
// my object created here should be mapped with the login page
localStorage.setItem("signupDetails", JSON.stringify(obj));
window.location.href = "index.php";
}
</script>