Forums

choose email recipient by checkbox

junkrig 21 Nov, 2011
Hi, all.
I am making a contact form which will offer site visitors the chance to email one of three organization leaders, and want to hide the leaders' emails.
So I made a simple form, putting the leaders' position titles in a checkbox group.
I have read here that I need to put an array handler before the email item in submit, but I don't know how to write the code to use it.
Say the 3 people are: choice_1=>wheel@kcsps.org, choice_2=>hotshirt@kcsps.org, choice_3=>wethands@kcsps.org. How do I turn this into a php script that will get the appropriate email to the right recipient?
Thanks in advance,
Jeff
GreyHead 29 Nov, 2011
Hi Jeff,

Which version of ChronoForms are you using? You can find the version from Site Admin | Extensions | Install/Uninstall | Components in Joomla! 1.5 or Site Admin | Extensions | Extension Manager | Manage in Joomla! 1.6.

There are several (maybe many) threads here on doing this and I think that FAQ#31 has instruction for several older releases.

Bob
This topic is locked and no more replies can be posted.