1. HTML file:
<form method="post" enctype="multipart/form-data" action="PATH OF PHP SCRIPT
THAT WILL HANDLE THE FILE">
<input type="hidden" name="MAX_FILE_SIZE" value="MAX SIZE IN BYTES OF THE
FILE UPLOADED">
<input type="file" name="myfile">
<input type="submit" value="SEND!!"
</form>
2. PHP file (file upload handler):
if ($myfile != "none") {
print "File uploaded:";
print "Name: ".$file_name;
print "Size: ".$file_size;
etc....etc......
move_uploaded_file("/PATH/WHERE/YOU/WANT/THE/FILE/".basename($myfile_name);
}
these snipplets could be useful...i hope you enjoy them.
------------------------
Federico
[EMAIL PROTECTED]
------------------------
Smileyq <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]
> After reading about file uploading on the PHP website it doesn't
> actually give an example to use for testing purposes. Can somebody
> provide me with a very simple and basic file upload example that I can
> start from and work with. Thanks for any help ahead of time.
> -Smileyq
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]