You are here: Re: Attach multiple files « PHP Programming Language « IT news, forums, messages
Re: Attach multiple files

Posted by Rik Wasmus on 12/31/07 16:48

On Mon, 31 Dec 2007 16:19:03 +0100, Jyo <jyotsna.purkar@gmail.com> wrote:
> I have problem regarding multiple file attachment. Can any one help
> regarding script like gmail provides for attach a file with remove
> link ? Also please note that this code should compatible with MAC -
> safari browser.

Some pointers:
1. Use a session.
2. Let the user upload files without sending the message immediately.
3. Store the files somewhere safe, delete them on session destroy/user
clicks remove link.
4. On send, retrieve the contents of the files and add them in a multipart
mail message (look at http://pear.php.net for some nice code that will
make this easy).

However, before you do all this, consider: aren't you writing something
that has been done to death, and maybe there's allready code out there
that does exactly what you want?
--
Rik Wasmus

 

Navigation:

[Reply to this 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

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