-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.php
52 lines (49 loc) · 1.9 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
<?php include('server.php') ?>
<!DOCTYPE html>
<html>
<head>
<title>FC Bayern Signup</title>
<link rel="stylesheet" type="text/css" href="main/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script>
function togglePassword() {
var x = document.getElementById("toggle");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
</script>
</head>
<body background="images/logwall.jpg">
<div class="logForm">
<div class="header">
<h1>Hello there,<br>Register</h1>
</div>
<form class="form" method="post" action="signup.php">
<?php include('errors.php'); ?>
<div class="inputs">
<input type="text" name="email" placeholder="Enter email" value="<?php echo $email; ?>" required>
</div>
<div class="inputs">
<input type="text" name="username" placeholder="Enter username" value="<?php echo $username; ?>" required>
</div>
<div class="inputs">
<input type="password" id="toggle" name="password" placeholder="Enter password" required>
</div>
<div class="inputs">
<input type="password" name="password1" placeholder="Repeat password" required>
</div>
<input type="checkbox" class="tog" onclick="togglePassword()">Show Password
<div class="inputs">
<button type="submit" class="button1" name="signup">SignUp</button>
</div>
<div class="member">
<p>Already have an account? <a href="login.php">Login</a> <br> </p>
<p><a href="index.php">Back Home</a></p>
</div>
</form>
</div>
</body>
</html>