File upload problem

From: Date: Sat, 01 Feb 2003 15:58:15 +0000
Subject: File upload problem
Groups: php.general 
Request: Send a blank email to php-general+get-133894@lists.php.net to get a copy of this message
I tried but I can't upload any file. My form and code are as following: ------------------------------------ <FORM METHOD="post"> <TABLE> <TR> <TD>File:</TD><TD> <INPUT TYPE="file" SIZE="50" NAME="userfile"></TD> </TR> <TR> <TD>&nbsp;</TD><TD><INPUT TYPE="submit" NAME="Submit" VALUE="OK"><INPUT TYPE="submit" NAME="Abort" VALUE="Abort"></TD> </TR> </TABLE> </FORM> <SCRIPT LANGUAGE="php"> if (isset($_POST["Submit"])){ echo "name: ".$_FILES["userfile"]["name"]."<BR>"; echo "size: ".$_FILES["userfile"]["size"]."<BR>"; echo "tmpname: ".$_FILES["userfile"]["tmpname"]."<BR>"; echo "error: ".$_FILES["userfile"]["error"]."<BR>"; } -------------------------------- Now, whenever I try to upload a file, I get such output: Notice: Undefined index: userfile in c:\_www\bpm\admintools\downloads.php So I've no idea what's up. file_uploads: On upload_tpm_dir points to existing directory upload_max_filesize: 2M max_post_size: 8M Please help how to make it working. It's PHP 4.3 with Apache/1.3.24 on WinXP Pro

« previous php.general (#133894) next »