feat: form submission handler with email + WhatsApp notifications
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
35
confirmacion.php
Normal file
35
confirmacion.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
session_start();
|
||||
$whatsappLink = $_SESSION['whatsapp_link'] ?? null;
|
||||
$nombre = $_SESSION['confirmacion_nombre'] ?? '';
|
||||
$servicioNombre = $_SESSION['confirmacion_servicio'] ?? '';
|
||||
|
||||
// Clear confirmation data
|
||||
unset($_SESSION['whatsapp_link'], $_SESSION['confirmacion_nombre'], $_SESSION['confirmacion_servicio']);
|
||||
|
||||
$pageTitle = 'Solicitud Enviada';
|
||||
require_once __DIR__ . '/includes/header.php';
|
||||
?>
|
||||
|
||||
<section class="section confirmation-section">
|
||||
<div class="container">
|
||||
<div class="confirmation-card">
|
||||
<div class="confirmation-card__icon">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
</div>
|
||||
<h1>¡Solicitud enviada!</h1>
|
||||
<p>Gracias <strong><?= htmlspecialchars($nombre) ?></strong>, hemos recibido tu solicitud para <strong><?= htmlspecialchars($servicioNombre) ?></strong>.</p>
|
||||
<p>Nos pondremos en contacto contigo lo antes posible.</p>
|
||||
<div class="confirmation-card__actions">
|
||||
<?php if ($whatsappLink): ?>
|
||||
<a href="<?= htmlspecialchars($whatsappLink) ?>" target="_blank" class="btn btn--whatsapp">
|
||||
<i class="fab fa-whatsapp"></i> Enviar mensaje por WhatsApp
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<a href="index.php" class="btn btn--secondary">Volver al inicio</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php require_once __DIR__ . '/includes/footer.php'; ?>
|
||||
Reference in New Issue
Block a user