-
Notifications
You must be signed in to change notification settings - Fork 0
/
register.php
executable file
·27 lines (27 loc) · 1.33 KB
/
register.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
<?php require "header.php"; ?>
<div id="BoxWrapper">
<div class="loginBox" id="login-redirect">
<h2>Already Registered?</h2><br />
<a class="button" href="login.php">Login</a>
</div>
<div class="loginBox" id="registration"">
<form method="POST" id="regform" action="register_process.php">
Alphanumeric Username and Password Only<br />
<label for="username">Username: </label>
<input type="text" name="username" pattern="[a-zA-Z0-9]+" maxlength="30" required />
<?php if(!empty($_GET) && $_GET["err"] == 1) echo " Username Already Exists";?><br />
<label for="email">E-Mail Address: </label>
<input type="email" name="email" maxlength="50" required />
<?php if(!empty($_GET) && $_GET["err"] == 2) echo " Email Already Registered";?><br />
<label for="emailc">Reconfirm E-Mail Address: </label>
<input type="email" name="emailc" maxlength="50" required /><br />
<label for="pass">Password: </label>
<input type="password" name="pass" pattern="[a-zA-Z0-9]+" maxlength="20" required /><br />
<label for="passc">Reconfirm Password: </label>
<input type="password" name="passc" pattern="[a-zA-Z0-9]+" maxlength="20" required /><br />
<input type="submit" value="Register" />
</form>
</div>
</div>
</main>
<?php require "footer.php"; ?>