I have a file upload script which works fine, however it currently saves the document under the original file name, I want to rename this on upload, ideally adding an ID number before it (from GET variable, below)
$employee=$_GET["id"];
The file upload script, where the name comes from is below:
$file_name = $key.$_FILES['files']['name'][$key];
How can I add the ID number before the name upon saving?