-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.php
57 lines (52 loc) · 1.63 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
<?php
session_start()
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>GameVerse - Sign Up</title>
<link rel="stylesheet" href="signup1.css">
<!-- Link your CSS file for styling -->
</head>
<body>
<header>
<h1>GameVerse</h1>
</header>
<main>
<section id="signup">
<div class="signup-container">
<h2>Create an Account</h2>
<form action="action_signup.php" method="post">
<div class="input-group">
<label for="fullname">Full Name</label>
<input type="text" id="fullname" name="fullname" placeholder="Enter your full name" required>
</div>
<div class="input-group">
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="Enter your email" required>
</div>
<div class="input-group">
<label for="username">Username</label>
<input type="text" id="username" name="username" placeholder="Choose a username" required>
</div>
<div class="input-group">
<label for="password">Password</label>
<input type="password" id="password" name="password" placeholder="Enter a password" required>
</div>
<?php
if (isset($_GET["error"])) {
echo "<p>" . $_GET["error"] . "</p>";
}
?>
<button type="submit" name="submit">Sign Up</button>
</form>
<p>Already have an account? <a href="login.php">Login</a></p>
</div>
</section>
</main>
<footer>
<!-- Footer content here -->
</footer>
</body>
</html>