Re: forms and files

From: Date: Tue, 02 Jul 2002 23:18:13 +0000
Subject: Re: forms and files
Groups: php.general 
Request: Send a blank email to php-general+get-105083@lists.php.net to get a copy of this message
><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] == "") { phpinfo(); #I dunno what is there, but whatever it is, this will tell you. > print "You need to specify a file to use."; >} > >Any ideas why it does that even if I do select a file? -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#105083) next »