-
Notifications
You must be signed in to change notification settings - Fork 0
/
Registration.php
80 lines (56 loc) · 2.15 KB
/
Registration.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 include('serverPet.php') ?>
<!DOCTYPE html>
<head>
<title>authentication page</title>
<link rel="stylesheet" type="text/css" href="Registration.css?v=<?php echo time(); ?>">
<link rel="shortcut icon" href="imageL.png">
</head>
<body>
<div class="container">
<div class="card">
<div class="inner-box" id="card">
<div class="card-front">
<h1>LOGIN</h1>
<form method="post" action="Registration.php">
<input type="text" class="input-box" name="username"
placeholder="Username" required>
<input type="password" class="input-box" name="password"
placeholder="Password" required>
<button type="submit" class="submit-btn" name="login" >
Submit</button>
<input type="checkbox" class="rememberme"> <span class="xy">Remember me</span>
<button type="button" class="btn1" onclick="openRegister()">New here? Register</button>
<a href="#">Forget password</a>
</form>
</div>
<div class="card-back">
<h1>REGISTER</h1>
<form method="post" action="Registration.php">
<input type="text" class="input-box" name="username"
placeholder="Username" required>
<input type="email" class="input-box" name="email"
placeholder="Email Id" required>
<input type="password" class="input-box" name="password"
placeholder="Password" required>
<input type="password" class="input-box" name="confirmpassword"
placeholder="Confirn Password" required>
<button type="submit" class="submit-btn" name="register">
Submit</button>
<input type="checkbox" class="remember me"> <span>Remember me</span>
<button type="button" class="btn" onclick="openLogin()">Already a member? Login</button>
</form>
</div>
</div>
</div>
</div>
<script>
var card = document.getElementById("card");
function openRegister(){
card.style.transform = "rotateY(-180deg)";
}
function openLogin(){
card.style.transform = "rotateY(0deg)";
}
</script>
</body>
</html>