You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
844 B
26 lines
844 B
<form action="/actions/registration.php" method="post">
|
|
<label for="login">Login</label>
|
|
<input type="text" name="login" id="login" class="form-control" required>
|
|
<br>
|
|
|
|
<label for="nickname">Nickname</label>
|
|
<input type="nickname" name="nickname" id="nickname" class="form-control" required>
|
|
<br>
|
|
|
|
<label for="password">Password</label>
|
|
<input type="password" name="password" id="password" class="form-control" required>
|
|
<br>
|
|
<?php
|
|
// if error code is set, show error message
|
|
if (isset($_GET['error'])) {
|
|
$error = $_GET['error'];
|
|
echo "<div class=\"alert alert-danger\" role=\"alert\">";
|
|
if ($error == 101) {
|
|
echo 'User already exists';
|
|
}
|
|
echo "</div>";
|
|
}
|
|
?>
|
|
|
|
<button type="submit" class="btn btn-primary">Register</button>
|
|
</form>
|
|
|