$bandId, 'user_id' => $user['id'] ?? null, 'event_date' => $_POST['event_date'] ?? '', 'location' => trim((string) $_POST['location'] ?? ''), 'budget' => (int) ($_POST['budget'] ?? 0), 'event_type' => trim((string) $_POST['event_type'] ?? ''), 'message' => trim((string) $_POST['message'] ?? ''), ]; if (!$data['event_date'] || !$data['location']) { $error = 'Bitte Datum und Ort ausfüllen.'; } else { createRequest($data); $recipient = $band['contact_email'] ?: SUPPORT_EMAIL; $emailBody = sprintf( '

Neue Anfrage für %s

Nachricht:

%s

', htmlspecialchars($band['name']), htmlspecialchars($data['event_date']), htmlspecialchars($data['location']), number_format((int) $data['budget'], 0, ',', '.'), htmlspecialchars($data['event_type']), nl2br(htmlspecialchars($data['message'])) ); $sent = sendEmail($recipient, 'Neue Anfrage – ' . $band['name'], $emailBody); $message = $sent ? 'Anfrage gespeichert und an die Band gemeldet.' : 'Anfrage gespeichert – E-Mail an die Band konnte nicht gesendet werden.'; } } $settings = settings(); ?> Anfrage – <?= htmlspecialchars($band['name']) ?>
← Zurück

Anfrage an

PayPal Zahlungsabwicklung ist , Service Fee: %.