forms and files
| From: | Tyler Longren | Date: | Tue, 02 Jul 2002 15:34:32 +0000 |
| Subject: | forms and files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-104940@lists.php.net to get a copy of this message | ||
Hi,
I have a form kinda like this:
<form action=$PHP_SELF?option=Mass&action=add method=POST
enctype=multipart/form-data>
<input type=file name=passcodeFile>
the rest of the form is there too. And $PHP_SELF is set to $PHP_SELF =
$_SERVER[PHP_SELF] at the top of the page.
When I select a passcodeFile file to upload and click the "upload"
button, I am presented with this on the next page:
"You need to specify a file to use."
Here's what I did:
if ($_POST[passcodeFile] == "") {
print "You need to specify a file to use.";
}
Any ideas why it does that even if I do select a file?
Thanks,
tyler