Maybe you forgot the enctype="multipart/form-data" in the <form> tag?
-- // DvDmanDT MSN: dvdmandt€hotmail.com Mail: dvdmandt€telia.com "Ron Herhuth" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] 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 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php