Reply to Re: [PHP] trying to get phpmail to send an attachment

Your name:

Reply:


Posted by "Richard Lynch" on 08/25/05 10:59

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация