Well, there's a relatively easy way.

If you use the same name for all the checkbox elements, the result (on your
action page) will be a comma-delimited list of values; if you use the e-mail
address as the value for the checkboxes, you're done. (You may have to
replace the comma delimiter with a semi-colon for a list of mail addresses;
if so, use ListChangeDelims to do that.)

-----Original Message-----
From: Brian Ivey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 25, 2000 5:16 PM
To: CF-Talk
Subject: Sending dynamic data to template


Dear List:

I am writing an application that allows users to upload files to a server.
When a file is uploaded, email notifications are sent to a group of selected
recipients. The user uploading the file can select the individuals they want
notified by choosing from a list of potential recipients. Checkboxes are
used to select recipients and the list of recipients is built dynamically
and will change frequently over the course of a project.

Here is my problem, how do I build the list of selected recipients to send
to a template for processing and how do I handle it when it arrives? I have
been reading about Cold Fusion data structures and the like, but am unsure
of how to proceed.

I would like to submit the chosen recipients to a form to process and then
send out the emails. Since the list is built dynamically, how do I do this.
Hard coding the recipient names as variables in the processing template is
not possible. I need to build an array or list of selected recipients, but
do not know how.

Is there a clean way (right now I would settle for any way) to do this?

Thanks,
Brian Ivey

----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to