'', 'email' => '', 'message' => '', ]; if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (isset($_POST['review']) && $user) { if (!eligibleForReview($bandId, (int) $user['id'])) { $reviewError = 'Für Bewertungen ist eine bestätigte Buchung nötig.'; } else { $comment = trim((string) ($_POST['comment'] ?? '')); if (mb_strlen($comment) > 200) { $reviewError = 'Maximal 200 Zeichen erlaubt.'; } else { storeReview([ 'band_id' => $bandId, 'user_id' => (int) $user['id'], 'rating' => (int) $_POST['rating'], 'comment' => $comment, ]); $reviewMessage = 'Danke! Deine Bewertung wartet auf Freigabe.'; } } } if (isset($_POST['contact'])) { $contactForm['name'] = trim((string) ($_POST['contact_name'] ?? '')); $contactForm['email'] = trim((string) ($_POST['contact_email'] ?? '')); $contactForm['message'] = trim((string) ($_POST['contact_message'] ?? '')); if ($contactForm['name'] === '' || $contactForm['message'] === '') { $contactError = 'Bitte Name und Nachricht ausfüllen.'; } elseif (!filter_var($contactForm['email'], FILTER_VALIDATE_EMAIL)) { $contactError = 'Bitte eine gültige E-Mail-Adresse angeben.'; } else { $recipient = $band['contact_email'] ?: SUPPORT_EMAIL; $body = sprintf( '

Neue Nachricht über die Bandseite %s.

Von: %s (%s)

Nachricht:
%s

', htmlspecialchars($band['name']), htmlspecialchars($contactForm['name']), htmlspecialchars($contactForm['email']), nl2br(htmlspecialchars($contactForm['message'])) ); $sent = sendEmail($recipient, 'Kontaktformular – ' . $band['name'], $body); if ($sent) { $contactMessage = 'Nachricht an die Band wurde verschickt.'; $contactForm = ['name' => '', 'email' => '', 'message' => '']; } else { $contactError = 'E-Mail-Versand zur Band nicht möglich. Bitte später erneut versuchen.'; } } } } ?> <?= htmlspecialchars($band['name']) ?> – <?= SITE_NAME ?>
← Zurück

Ort: ab
#

Verfügbarkeit anfragen

Verfügbarkeit

DatumStatus
format('d.m.Y')) ?>

Kontakt zur Band

Schicke eine direkte Nachricht.

Bewertungen

format('d.m.Y') ?>

Noch keine freigegebenen Bewertungen.

Eigene Bewertung