-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoctorReg.php
66 lines (59 loc) · 2.79 KB
/
doctorReg.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
<?php
require "partials/header.php"
?>
<link rel="stylesheet" href="doctorReg.css?v=<?= time(); ?>" />
<style>
.active {}
</style>
</head>
<body>
<script>
function login() {
document.querySelector('.login').classList.remove("non-active");
document.querySelector('.register').classList.add("non-active");
document.querySelector('.doc-login').style.display = "block";
document.querySelector('.doc-reg').style.display = "none";
}
function register() {
document.querySelector('.register').classList.remove("non-active");
document.querySelector('.login').classList.add("non-active");
document.querySelector('.doc-reg').style.display = "block";
document.querySelector('.doc-login').style.display = "none";
}
</script>
<div class="head">
<?php
require "partials/navbar.php";
?>
<div id="main">
<center>
<div id="login-reg">
<div class="login-signup">
<div class="login non-active" onclick="login()">Login as Doctor</div>
<div class="register" onclick="register()">Register as Doctor</div>
</div>
<div id="login-reg-form">
<div class="doc-login">
<form action="doctorValidation.php" method="post">
<input class="contact-input" type="text" name="username" placeholder="User Name" required> <br>
<input class="contact-input" type="email" name="email" placeholder="Email" required><br>
<input class="contact-input" type="password" name="password" placeholder="Password" required><br>
<button type="submit">LogIn</button>
</form>
</div>
<div class="doc-reg">
<form action="doctorSignup.php" method="post">
<input class="contact-input" type="text" name="username" placeholder="User Name" required> <br>
<input class="contact-input" type="email" name="email" placeholder="Email" required><br>
<input class="contact-input" type="tel" name="phone" placeholder="Phone Number(Optional)"><br>
<input class="contact-input" type="password" name="password" placeholder="Password" required><br>
<button type="submit">Register</button>
</form>
</div>
</div>
</div>
</center>
</div>
</div>
</body>
</html>