$_FILES array returns undefined index

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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






[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux