Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2006 Oct : HOWTO: Post FILE
| Subject: | HOWTO: Post FILE |
| Posted by: | "Herkus" (..@no.com) |
| Date: | Tue, 24 Oct 2006 14:03:19 |
Hi all, first of all - sorry about my english...
My uploader.php is:
$target_path = "uploads/";
$target_path = $target_path . basename($_FILES['uploadedfile']['name']);
move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path))
Code in my program (VFP):
<...>
lhUrlFile = HttpOpenRequest( lhConnect, 'POST', lcOBj, 0, 0, 0, ;
bitor( INTERNET_FLAG_KEEP_CONNECTION, INTERNET_FLAG_RELOAD ), 0)
<...>
How my HttpSendRequest should looke like? HttpSendRequest(
lhUrlFile, yyy, yyy, xxx, Len(xxx) )
What should i write instead xxx and yyy? I cant understand how can i
POST variable "uploadedfile" to my uploader.php...
THANKS!