35286-vm/subscribe.php
Flatlogic Bot 6e132e0b38 0.2
2025-10-27 21:34:11 +00:00

72 lines
3.5 KiB
PHP

<?php
session_start();
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$_SESSION['personal_details'] = [
'fullName' => filter_input(INPUT_POST, 'fullName', FILTER_SANITIZE_STRING),
'email' => filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL),
'phone' => filter_input(INPUT_POST, 'phone', FILTER_SANITIZE_STRING),
];
header('Location: subscribe-step2.php');
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Subscribe - SecureLife</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<header class="navbar navbar-expand-lg navbar-light bg-white shadow-sm">
<div class="container">
<a class="navbar-brand" href="index.php">SecureLife</a>
</div>
</header>
<main class="container my-5">
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="card shadow-sm border-0" style="border-radius: 0.75rem;">
<div class="card-body p-5">
<h1 class="card-title text-center mb-2 fw-bold">Get Your Free Quote</h1>
<p class="text-center text-muted mb-5">Step 1: Tell us about yourself</p>
<form action="subscribe.php" method="POST">
<div class="mb-4">
<label for="fullName" class="form-label fs-5">Full Name</label>
<input type="text" class="form-control form-control-lg" id="fullName" name="fullName" placeholder="e.g., John Doe" required>
</div>
<div class="mb-4">
<label for="email" class="form-label fs-5">Email Address</label>
<input type="email" class="form-control form-control-lg" id="email" name="email" placeholder="e.g., john.doe@example.com" required>
</div>
<div class="mb-4">
<label for="phone" class="form-label fs-5">Phone Number</label>
<input type="tel" class="form-control form-control-lg" id="phone" name="phone" placeholder="e.g., (555) 123-4567" required>
</div>
<div class="d-grid mt-5">
<button type="submit" class="btn btn-primary-modern btn-lg">Next Step &rarr;</button>
</div>
</form>
</div>
</div>
</div>
</div>
</main>
<footer class="text-center py-4 mt-auto bg-dark text-white">
<p class="mb-0">&copy; <?php echo date("Y"); ?> SecureLife. All Rights Reserved.</p>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>