Re: trying to get phpmail to send an attachment

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

 



On Wed, August 24, 2005 12:39 pm, Ross wrote:
> Fatal error: Function name must be a string in
> c:\Inetpub\wwwroot\ssn\php_mail.php on line 11

var_dump($_FILES['userfile']);

$_FILES['userfile'] is going to be an array.

It will have elements like 'name', 'tmp_name', 'error', 'size' etc.

> $mail->AddAttachment($_FILES('userfile'));


>     <input name="userfile"]" type="file" id="userfile">

What's with the extra ]" in there?...

That might be what is messing you up...

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
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