RE: [PHP] File Upload problem
| From: | Van Andel, Robert | Date: | Tue, 12 Nov 2002 23:58:33 +0000 |
| Subject: | RE: [PHP] File Upload problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-124103@lists.php.net to get a copy of this message | ||
It was a typo. Sorry.
Robbert van Andel
===============================
Network Operator
NW Regional Operations Center
Charter Communications
ROC Phone: 866-311-6646
Desk Phone: 360-828-6727
email: DL NW ROC
===============================
-----Original Message-----
From: Ernest E Vogelsinger [mailto:ernest@vogelsinger.at]
Sent: Tuesday, November 12, 2002 3:46 PM
To: Van Andel, Robert
Cc: php-general@lists.php.net
Subject: Re: [PHP] File Upload problem
At 00:25 13.11.2002, Van Andel, Robert said:
--------------------[snip]--------------------
><FORM action="<? echo $PHP_SELF; ?>" method=post
>encType=multipart/form-data><INPUT type=hidden value=20000
>name=MAX_FILE_SIZE>
><INPUT type=file name=users_file><BR><INPUT type=submit value=Upload!>
></FORM><?PHP
> }
>?>
>When I submit the form at the bottom of the script, the $user_file variable
>equals "none". I am unable to figure out what is going on. The variable
>$users_file_name lists the file's name, but the $user_file is none and the
>$user_file_size =0.
>
>Why is $user_file equal to none? Any help will be greatly appreciated.
--------------------[snip]--------------------
Try to use the name $users_file and $users_file_size (note the 's' after
user).
Just in case that was no typo in your message...
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
"The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all
computers."