Hi,

uploading of file via form is described in chapter 19 of PHP documentation.
Look there for more explanation and examples.
But the source of error in your case is probably because of incorrect name of
NAME field in the form. It should be  <INPUT NAME="sourcefile" TYPE="file">
not  <INPUT NAME="$sourcefile" TYPE="file">. Don't use "$" - put only the name
of the variable.

Let me know if it helped you. Greetings

Piotr

Cenker Sisman wrote:

> I am using following code to upload files to server. But it gives error. I
> am using Windows 2000 Server / IIS 5.0
>
> Please give advice.
>
> >>
>
> @copy($sourcefile,  $path . "/" . $file_name);
>
> $sourcefile is defined in form submition
> as
>  <INPUT NAME="$sourcefile" TYPE="file">
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to