blob: 1dc7beabd5bf1072ccb0eac4eccca0e1d0bb1497 (
plain) (
blame)
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
|
<?php
$title = 'Register a new user';
include '../meta.php';
$status = null;
runController('register');
?>
<?php if ($status !== null): ?>
<?php if ($status !== ""): ?>
<p>
Fail: <?= $status ?>
</p>
<?php else: ?>
<p>
Success!
</p>
<?php endif; ?>
<?php endif; ?>
<form action="./index.php" method="POST">
<input type="text" name="username" placeholder="Username" minlength="1" pattern="[A-Za-z][A-Za-z_0-9]*">
<input type="password" name="password" placeholder="Password" minlength="4">
<input type="submit" value="Register">
</form>
|