- Code: Select all
<?php
$_g = stripslashes_deep ($_GET);
if (isset ($_g["_s2member_seeking"]["file"])) {
$file_download_req = esc_html ($_g["_s2member_seeking"]["file"]);
} else {
$file_download_req = ' !!! no filename !!! ';
}
echo 'file= ' . $file_download_req;
?>
The URL to retrieve the filename from looks like that (...?_s2member_seeking[type]=file&_s2member_seeking[file]=TestFile-CRRR540.dxf....)
All I need is to get the filename TestFile-CRRR540.dxf from the URL for further use in the other plugin.
Any help or hint would be greatly appreciated.