Hi,
I'm a new inexpert php programmer.
I've tested your script upload.html and upload.php and it is all ok.
Now, I like modify script to upload a specified file (i.e c:\pippo.ttt) from pc to server, without insert manually the file name in the input box, but I have some problems.
test 1)
I try to substitute in upload.htm the line:
:---------
submit this file: <input type=file name="userfile"><br>
:---------
with this line :
:---------
submit this file: <input type="hidden" name="userfile" value="c

ippo.ttt"><br>
:---------
... but the server (
http://infrarossi.free.fr/test/upload5.htm ) replay :
:---------
Warning: Unable to open 'c

ippo.ttt' for reading: No such file or directory in your script on line 12
:---------
--------------------------------------------------------------
test 2)
to debug I add a line in upload.php
:---------
echo "$userfile";
echo "<br>-xxx-<br>";
:---------
... but the server replay:
:---------
./phpIV1Asq
-xxx-
Warning: Unable to open 'c

ippo.ttt' for reading: No such file or directory in your script on line 9
:---------
-------------------------------------------------------------
The question:
Why the string c

ippo.ttt is echoed as ./phpIV1As ?
Thank you for your help.
Best regards