18 lines
579 B
PHP
18 lines
579 B
PHP
<?php
|
|
if (App::flash('errors')) {
|
|
print_r(App::flash('errors'));
|
|
}
|
|
?>
|
|
|
|
<form action="/gate/register" method="post">
|
|
<input type="text" name="username" placeholder="Username">
|
|
<input type="text" name="email" placeholder="Email">
|
|
<input type="password" name="password" placeholder="Password">
|
|
<input type="password" name="password2" placeholder="Confirm Password">
|
|
<select name="class">
|
|
<?php foreach (Classes::all() as $class): ?>
|
|
<option value="<?= $class['id'] ?>"><?= $class['name'] ?></option>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
<button>Register</button>
|
|
</form>
|