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> </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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php