$_FILES array returns undefined index
| From: | Ron dot Herhuth at tatumpartners dot com | Date: | Tue, 06 Apr 2004 15:56:23 +0000 |
| Subject: | $_FILES array returns undefined index | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-23383@lists.php.net to get a copy of this message | ||
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