-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
73 lines (67 loc) · 2.2 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
<!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>User - Login and Register</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h2>PLAY N HEAR</h2>
<nav>
<a href="#">HOME</a>
<a href="#">ABOUT</a>
<a href="#">BLOG</a>
<a href="#">CONTACT</a>
</nav>
<div class='sign-in-up'>
<button type='button' onclick="popup('login-popup')">LOGIN</button>
<button type='button' onclick="popup('register-popup')">REGISTER</button>
</div>
</header>
<div class="popup-container" id="login-popup">
<div class="popup">
<form method="POST" action="login_register.php">
<h2>
<span>USER LOGIN</span>
<button type="reset" onclick="popup('login-popup')">X</button>
</h2>
<input type="text" placeholder="E-mail or Username" name="email_username">
<input type="password" placeholder="Password" name="password">
<button type="submit" class="login-btn" name="login">LOGIN</button>
</form>
</div>
</div>
<div class="popup-container" id="register-popup">
<div class="register popup">
<form method="POST" action="login_register.php">
<h2>
<span>USER REGISTER</span>
<button type="reset" onclick="popup('register-popup')">X</button>
</h2>
<input type="text" placeholder="Full Name" name="fullname">
<input type="text" placeholder="Username" name="username">
<input type="email" placeholder="E-mail" name="email">
<input type="password" placeholder="Password" name="password">
<button type="submit" class="register-btn" name="register">REGISTER</button>
</form>
</div>
</div>
<script>
function popup(popup_name)
{
get_popup=document.getElementById(popup_name);
if(get_popup.style.display=="flex")
{
get_popup.style.display="none";
}
else
{
get_popup.style.display="flex";
}
}
</script>
</body>
</html>