aboutsummaryrefslogtreecommitdiff
path: root/views/register/index.php
blob: 86f4aa7d9d3d98691ced7b16dedfbd65962d8180 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php if (isset($user_status)): ?>
    <?php if ($user_status !== ""): ?>
        <p>
            Fail: <?= $user_status ?>
        </p>
    <?php else: ?>
        <p>
            Success!
        </p>
    <?php endif; ?>
<?php endif; ?>

<form action="#" 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>