File: /home/bigisxfd/public_html/cowork/success.php
<?php $data_binding='';
// Include necessary files
include_once("functions.php");
// Get the generated RFID from the URL parameter
$rfid = $_GET['rfid'];
// Path to store generated QR codes
$qrCodePath = "qrcodes/";
// Generate a unique filename for the QR code image
$qrCodeFilename = $qrCodePath . "qr_" . $rfid . ".png";
// Generate the QR code image
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Booking Success</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<section>
<div class="column">
<h2>Booking Successful</h2>
<p>Your booking was successful. Your ID: <?php echo $rfid; ?></p><br>
<p>Here is your QR Code:</p><br>
<img src="barcode.gif" alt="QR Code">
</div>
</section>
</body>
</html>