diff options
Diffstat (limited to 'views/register/index.php')
| -rw-r--r-- | views/register/index.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/views/register/index.php b/views/register/index.php new file mode 100644 index 0000000..4e2abb1 --- /dev/null +++ b/views/register/index.php @@ -0,0 +1,25 @@ +<?php + $title = 'Register a new user'; + include '../meta.php'; + + $status = null; + runController('register'); +?> + +<?php if ($status !== null): ?> + <?php if ($status !== ""): ?> + <p> + Fail: <?php echo $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> |
