25 lines
611 B
PHP
25 lines
611 B
PHP
<?php
|
|
session_start();
|
|
require_once 'db/config.php';
|
|
include 'header.php';
|
|
|
|
if (!isset($_SESSION['order_id'])) {
|
|
header('Location: index.php');
|
|
exit();
|
|
}
|
|
|
|
$order_id = $_SESSION['order_id'];
|
|
unset($_SESSION['order_id']);
|
|
|
|
?>
|
|
|
|
<main class="container">
|
|
<div class="order-confirmation">
|
|
<h1>Thank You for Your Order!</h1>
|
|
<p>Your order has been placed successfully.</p>
|
|
<p>Your Order ID is: <strong><?php echo htmlspecialchars($order_id); ?></strong></p>
|
|
<a href="index.php" class="btn btn-primary">Continue Shopping</a>
|
|
</div>
|
|
</main>
|
|
|
|
<?php include 'footer.php'; ?>
|