It's not elegant (and it REALLY should save to a database as well..), but
I knocked it out in about 3 mins - it'll do the work you need it to - just
change some of the things like TO and FROM and you're done

<cfif StructKeyExists(form, "fieldnames">
<cfmail to="[email protected]" from="[email protected]" subject="Form
Registration">
<cfdump var="#Form#">
</cfmail>
</cfif>

<cfoutput>
<form name="registrationForm" action="#cgi.script_name#" method="post">
<cfloop from="1" to="4" step="1" index="i">
Parent/guardian ###i#: <input type="text" name="parent_#i#" id="parent_#i#"
value="" maxlength="255"/><br/>
Address: <input type="text" name="address_#i#" id="address_#i#" value=""
maxlength="500"/><br/>
Phone: <input type="text" name="phone_#i#" id="phone_#i#" value=""
maxlength="255"/><br/>
Email: <input type="text" name="email_#i#" id="email_#i#" value=""
maxlength="255"/><br/>
</cfloop>
<input type="submit" value="Register">
</form>
</cfoutput>

On Thu, Sep 29, 2011 at 11:41 AM, Steve LaBadie <[email protected]>wrote:

>
> Robert,
>
> The goal is to send the form data via email to the owner of the form,
> not to the people registering.
>
> Steve LaBadie, Web Manager
> East Stroudsburg University
> 570-422-3999
> http://www.esu.edu
> [email protected]
>
>
> -----Original Message-----
> From: Robert Harrison [mailto:[email protected]]
> Sent: Thursday, September 29, 2011 2:39 PM
> To: cf-talk
> Subject: RE: multiple email addresses in cfmail FROM attribute
>
>
> I still don't understand what you want to do from that.   What's the
> action you want to take? Do you want to send mail to the people in the
> form?   Do you want to send an email to someone else with the form data
> in the email?
>
> What's the goal?
>
>
>
> -----Original Message-----
> From: Steve LaBadie [mailto:[email protected]]
> Sent: Thursday, September 29, 2011 2:28 PM
> To: cf-talk
> Subject: RE: multiple email addresses in cfmail FROM attribute
>
>
> I apologize if I haven't explained myself properly. There is space for 4
> attendees to register for the event. The owner of the form wants to
> gather all of the info inputted into the form.
>
> Parent/guardian #1
> Address
> Phone
> Email
>
> Parent/guardian #2
> Address
> Phone
> Email
>
> Parent/guardian #3
> Address
> Phone
> Email
>
> Parent/guardian #4
> Address
> Phone
> email
>
> Steve LaBadie, Web Manager
> East Stroudsburg University
> 570-422-3999
> http://www.esu.edu
> [email protected]
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347827
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to