-
Notifications
You must be signed in to change notification settings - Fork 790
/
register.php
45 lines (33 loc) · 1.77 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!-- this is the Simple sexy PHP Login Script. You can find it on http:https://www.php-login.net ! It's free and open source. -->
<!-- errors & messages --->
<?php
// show negative messages
if ($registration->errors) {
foreach ($registration->errors as $error) {
echo $error . " ";
}
}
// show positive messages
if ($registration->messages) {
foreach ($registration->messages as $message) {
echo $message . " ";
}
}
?>
<!-- register form -->
<form method="post" action="register.php" name="registerform">
<!-- the user name input field uses a HTML5 pattern check -->
<label for="login_input_username">Username (only letters and numbers, 2 to 64 characters)</label>
<input id="login_input_username" class="login_input" type="text" pattern="[a-zA-Z0-9]{2,64}" name="user_name" required />
<!-- the email input field uses a HTML5 email type check -->
<label for="login_input_email">User's email</label>
<input id="login_input_email" class="login_input" type="email" name="user_email" required />
<label for="login_input_password_new">Password (min. 6 characters)</label>
<input id="login_input_password_new" class="login_input" type="password" name="user_password_new" pattern=".{6,}" required autocomplete="off" />
<label for="login_input_password_repeat">Repeat password</label>
<input id="login_input_password_repeat" class="login_input" type="password" name="user_password_repeat" pattern=".{6,}" required autocomplete="off" />
<input type="submit" name="register" value="Register" />
</form>
<!-- backlink -->
<a href="index.php">Back to Login Page</a>
<!-- this is the Simple sexy PHP Login Script. You can find it on http:https://www.php-login.net ! It's free and open source. -->