file upload

From: Date: Mon, 25 Oct 2004 20:53:09 +0000
Subject: file upload
Groups: php.general 
Request: Send a blank email to php-general+get-200291@lists.php.net to get a copy of this message
Hi, I'm trying to submit a file from "index.php" to "index2.php". I know how to do file upload in PHP. On "index.php" I have: <FORM ACTION="index2.php" METHOD=POST ENCTYPE="multipart/form-data"> <INPUT TYPE="file" NAME="myfile" SIZE=30> <INPUT TYPE="submit" NAME="Upload File"> </FORM> The next page would only need to use $HTTP_POST_FILES['myfile'] to access the submitted file. My question is: if I already know which file I want to submit, say "file1.xml". How can I just ask "index.php" to submit "file1.xml" to "index2.php"? Without asking the users to pick the file to upload? Thanks a lot in advance!

« previous php.general (#200291) next »