Re: $_FILES array returns undefined index
| From: | DvDmanDT | Date: | Tue, 06 Apr 2004 18:03:39 +0000 |
| Subject: | Re: $_FILES array returns undefined index | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-23385@lists.php.net to get a copy of this message | ||
Maybe you forgot the enctype="multipart/form-data" in the <form> tag?
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Ron Herhuth" <Ron.Herhuth@tatumpartners.com> skrev i meddelandet
news:05c401c41bef$b5d18f40$f25d2981@tatumlink.com...
I'm trying to do a file upload using PHP. I am using this form element on
th first page:
<input type="FILE" name="userfile" size="36">
On the second page I'm attempting to access the file name to figure out
how to access it using this code:
echo $_FILES['userfile']['name'];
I get an undefined index userfile...error
What am I doing/not doing right here?
Thanks,
ROn