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@xxxxxxxxxxxxxxxxx> skrev i meddelandet news:05c401c41bef$b5d18f40$f25d2981@xxxxxxxxxxxxxxxx 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