feat: form submission handler with email + WhatsApp notifications

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Gestoría LP
2026-03-02 00:11:42 +00:00
parent aacdcb92f7
commit 0ef344b67a
3 changed files with 158 additions and 0 deletions

35
confirmacion.php Normal file
View 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'; ?>