36 lines
1.4 KiB
PHP
36 lines
1.4 KiB
PHP
<?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'; ?>
|