You are here: Using Formmail.php and trying to select multiple recipients « PHP Language « IT news, forums, messages
Using Formmail.php and trying to select multiple recipients

Posted by Maggie Blue on 10/03/42 11:16

Hi! Total "newbie to programming" here.

I'm using Jack's Formmail.php, code at:
http://www.dtheatre.com/scripts/source_view.php?path=formmail_code/formmail.phps

and I'm trying to figure out how I can have it send an identical message to
more than one recipient, based on a checkbox selected by the user who
submits the form.


<input type="checkbox" name="email1" value="recipient1" />Recipient 1
<input type="checkbox" name="email2" value="recipient2" />Recipient 2
<input type="checkbox" name="email3" value="recipient3" />Recipient 3

where "recipient[n]" is stored in the script:

"recipient1" = "email1@email.com"
"recipient2" = "email2@email.com"
"recipient3" = "email3@email.com"

If the user checks recipient1 AND recipient3, it would send the message to
both of the above e-mail addresses.

Is there a script out there that could do this better?
Any help you can give me would be very helpful!

Thanks so much,
Maggie

 

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

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