Now I tried to get the field 'file1' in 'myFile.php' like this
$theFileName = $_POST['file1'];
This returns nothing.
But if i remove the part enctype="multipart/form-data" in the form tag
I get the value. How do I get the value without removing enctype="multipart/form-data"???
That just gives the file name though. After the upload the file is stored in the temp directory as $_FILES['file1']['tmpname'] and will be deleted at the end of the script unless you do something with it like email it or file it.
Bookmarks