58 lines
1.5 KiB
PHP
58 lines
1.5 KiB
PHP
<?php
|
|
include_once 'php/controller/register-controller.php';
|
|
|
|
$error = $error ?? null;
|
|
?>
|
|
|
|
<main class="login-page">
|
|
<div class="login-container">
|
|
|
|
<h1>Jetzt Registrieren!</h1>
|
|
|
|
<?php if ($error): ?>
|
|
<p style="color:red;">
|
|
<?php echo htmlspecialchars($error); ?>
|
|
</p>
|
|
<?php endif; ?>
|
|
|
|
<form method="post" action="index.php?pfad=register">
|
|
|
|
<p class="input-label">Email:</p>
|
|
<input type="email"
|
|
name="email"
|
|
class="login-input"
|
|
placeholder="mustermann@web.de"
|
|
required>
|
|
|
|
<p class="input-label">Vorname:</p>
|
|
<input type="text"
|
|
name="vorname"
|
|
class="login-input"
|
|
placeholder="Max"
|
|
required>
|
|
|
|
<p class="input-label">Nachname:</p>
|
|
<input type="text"
|
|
name="nachname"
|
|
class="login-input"
|
|
placeholder="Mustermann"
|
|
required>
|
|
|
|
<p class="input-label">Passwort:</p>
|
|
<input type="password"
|
|
name="password"
|
|
class="login-input"
|
|
placeholder="Passwort"
|
|
required>
|
|
|
|
<button type="submit"
|
|
value="register"
|
|
name="registerSubmit"
|
|
class="button">
|
|
kostenlos registrieren
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
</main>
|