Entry
how to program a uploading file?If use "copy",it doesnot work!how to identify the file on the client?
What does the script look like that is in the Action = field of the form?
In php4 (hosted on www.free.fr) I use a form to upload a file with enctype="multipart/form-data" + m
In php4 (hosted free.fr), a form with enctype="multipart/form-data" + method="POST", doesn't trasmit
A 'post' form with enctype="multipart/form-data" doesn't transmit string variables (values=0). Can I
A 'post' form with enctype="multipart/form-data" doesn't transmit string variables (values=0). Can I
A 'post' form with enctype="multipart/form-data" doesn't transmit string variables (values=0). Can I
A 'post' form with enctype="multipart/form-data" doesn't transmit string variables (values=0). Can I
Mar 15th, 2000 18:16
Dave Garth, casey c, Joe Yglesias, Bob Louis,
I think your asking how to upload a file.
in the html you need (the enctype is needed):
<form method=POST action='url.php3' enctype='multipart/form-data'>
<input type=hidden name='MAX_FILE_SIZE' value=200000>
file: <input type=file name='userfile'>
</form>
php will then set some variables for you:
$userfile : a temporary file where the file is stored
$userfile_name : the name of the file on the client
$userfile_type : the type associated with the file
you could then copy($userfile,$userfile_name) etc.