obananapay_admin/users/delete-kyc.php

23 lines
514 B
PHP

<?php
include '../functions-test.php';
if (isset($_GET['userID'])) {
$userID = $_GET['userID'];
// Delete KYC info
$response = delete_kyc_info($userID);
// 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.";
}