2024-03-06 10:18:57 +08:00
|
|
|
<?php
|
|
|
|
include '../functions-test.php';
|
|
|
|
|
2024-03-07 14:23:47 +08:00
|
|
|
if (isset($_GET['kycID'])) {
|
|
|
|
$kycID = $_GET['kycID'];
|
2024-03-06 10:18:57 +08:00
|
|
|
|
|
|
|
// Delete KYC info
|
2024-03-07 14:23:47 +08:00
|
|
|
$response = delete_kyc_info($kycID);
|
2024-03-06 10:18:57 +08:00
|
|
|
|
|
|
|
// Check if deletion was successful
|
|
|
|
if ($response) {
|
|
|
|
// Redirect back to users-kyc.php
|
|
|
|
header("Location: users-kyc.php");
|
|
|
|
exit();
|
|
|
|
} else {
|
|
|
|
// Handle error (if needed)
|
|
|
|
echo "Error deleting KYC info.";
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
// Handle case where userID is not provided
|
|
|
|
echo "Invalid request.";
|
|
|
|
}
|