Abgabe03: Profilbearbeitung: Reviewnacharbeitung #23

Merged
niklas.ortmann merged 9 commits from dev into Abgabe03 2026-06-03 22:26:25 +02:00
Showing only changes of commit 22b1dd827d - Show all commits
+10 -5
View File
@@ -1,16 +1,18 @@
<?php
include_once 'php/controller/register-controller.php';
$error = $error ?? null;
?>
<!--
Form: Registrierung
Funktion: Erstellung neuer Benutzerkonten
-->
<main class="login-page">
<div class="login-container">
<h1>Jetzt Registrieren!</h1>
<?php if ($error): ?>
<p style="color:red;">
<?php if (!empty($error)): ?>
<p class="alert-message is-error">
<?php echo htmlspecialchars($error); ?>
</p>
<?php endif; ?>
@@ -22,6 +24,7 @@ $error = $error ?? null;
name="email"
class="login-input"
placeholder="mustermann@web.de"
value="<?php echo htmlspecialchars($_POST["email"] ?? ""); ?>"
required>
<p class="input-label">Vorname:</p>
@@ -29,6 +32,7 @@ $error = $error ?? null;
name="vorname"
class="login-input"
placeholder="Max"
value="<?php echo htmlspecialchars($_POST["vorname"] ?? ""); ?>"
required>
<p class="input-label">Nachname:</p>
@@ -36,6 +40,7 @@ $error = $error ?? null;
name="nachname"
class="login-input"
placeholder="Mustermann"
value="<?php echo htmlspecialchars($_POST["nachname"] ?? ""); ?>"
required>
<p class="input-label">Passwort:</p>
@@ -48,7 +53,7 @@ $error = $error ?? null;
<button type="submit"
value="register"
name="registerSubmit"
class="button">
class="login-button">
kostenlos registrieren
</button>