file upload

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux