Invalid submission: missing eft_id or file."; echo "
";
echo "POST data: " . print_r($_POST, true);
echo "FILES data: " . print_r($_FILES, true);
echo "";
} else {
$file = $_FILES['pop_file'];
$target_dir = "uploads/pop/";
$target_file = $target_dir . $eft_id . ".pdf";
// Check for upload errors first
if ($file['error'] !== UPLOAD_ERR_OK) {
echo "Tmp file exists? " . (file_exists($file['tmp_name']) ? "Yes" : "No") . ""; echo "
Tmp file path: " . htmlspecialchars($file['tmp_name']) . ""; exit; } } } // Fetch bookings for dropdown $stmt = $conn->prepare("SELECT eft_id FROM bookings WHERE user_id = ? AND status = 'AWAITING PAYMENT'"); //TODO add membership id as well $stmt->bind_param("i", $user_id); $stmt->execute(); $result = $stmt->get_result(); $bookings = $result->fetch_all(MYSQLI_ASSOC); $bannerFolder = 'assets/images/banners/'; $bannerImages = glob($bannerFolder . '*.{jpg,jpeg,png,webp}', GLOB_BRACE); $randomBanner = 'assets/images/base4/camping.jpg'; // default fallback if (!empty($bannerImages)) { $randomBanner = $bannerImages[array_rand($bannerImages)]; } ?>
Submit Proof of Payment
To finalise your booking, select the booking that you have paid for below, and then upload your PDF proof of payment.