Justtechjobs.com Find a programming school near you






Online Campus Both


php-windows | 2001042

Re: [PHP-WIN] Upload file From: Piotr Pluciennik (ppluciennik <email protected>)
Date: 04/16/01

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.
>
> >>
>
>  <email protected>($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: php-windows-unsubscribe <email protected>
> For additional commands, e-mail: php-windows-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>

_________________________________________________________
Do You Yahoo!?
Get your free  <email protected> address at http://mail.yahoo.com

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe <email protected>
For additional commands, e-mail: php-windows-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>