Hi,
I've written a file upload script to allow admin to upload an mp3 file. Once the form has been validated (and has thrown up errors - such as Title fields not filled in) I need to be able to store the data in the form fields so the user doesnt have to fill in the entire form again.
Obviously, this is done by calling the $POST variable on the value of a field e.g.
value="<?=echo $_POST['sID'] ?>"
But what about type="file"? I'd like to store the path to the file on the users local machine so that if an error is thrown elsewhere, they don't have to find the file again.
As far as I'm aware the only info the server takes from a type="file" field is stored in the $_FILES array, which doesn't contain a key to the original local path?
I'd like to avoid javascript to collect the user's input if possible...
Any ideas?
thanks