I’m uploading files from computer to server using this method
Right now the php code is :
$tmp_file_name = $_FILES['Filedata']['tmp_n
$target_path = "/TARGET_PATH/";
$target_path = $target_path . basename($_FILES['Filedata
$ok = move_uploaded_file($tmp_fi
// This message will be passed to 'oncomplete' function
echo $ok ? "OK" : "KO";
However, I would like to modify a little bit the php code in order to move files to different target paths.
$target_path = "/TARGET_PATH/VARIABLE/";
The “VARIABLE” value comes from a hidden input text file in the form
<input name="field" type="hidden" id="field" size="13" value="VARIABLE" />
I don’t know how to pass a value form an html field to php.
Thank you for your advice,