Ask a Question related to Coldfusion Flash Integration, Design and Development.
-
Henrikson #1
Coldfusion mail script and flash form question
Suggestions anybody?
I have a basic form in flash which calls a cfm script, but somehow the cfm
script does not pass on the form content to the server. I am not sure if the
sendAndLoad function is missing something or if the cfm script is the
troublemaker?
Regards, Henrik
The cfm script is:
<CFMAIL to="henrik@toad.net" from="#visitor_name#" subject="Message from my
Website" server="dcjazz.com">
Name: #visitor_name#
E-Mail: #visitor_email#
Phone: #visitor_phone#
Comments: #visitor_comments#
</cfmail>
var gatherForm:LoadVars = new LoadVars();
// Contact Form
function sendForm() {
gatherForm.visitor_name = contactForm.userName.text;
gatherForm.visitor_email = contactForm.userEmail.text;
gatherForm.visitor_phone = contactForm.userPhone.text;
gatherForm.visitor_comments = contactForm.userMessage.text;
gatherForm.sendAndLoad ("http://www.temikamoore.com/mail1.cfm", gatherForm,
"POST");
}
// onRelease: Perform 'sendForm' function
this.contactForm.submitBtn.onRelease = function() {
if (contactForm.userEmail.text == "" || contactForm.userName.text == "" ||
contactForm.userMessage.text == "") {
gotoAndStop ("error");
} else {
sendForm();
gotoAndStop ("correct");
}
}
Henrikson Guest
-
Flex form to ColdFusion question
I am working on car insurance application form, which submits data back to CF8 server. Everything was good until we came to corporate form, where... -
#39976 [NEW]: not able to send the mail form php script
From: narendra dot rajput at gmail dot com Operating system: Xp PHP version: 5.2.0 PHP Bug Type: *Mail Related Bug... -
Form Mail Script
Hello, could anyone tell me exactly how to edit the script to make it work and where to place the files on my website directories? I've been... -
Form Script Question
Hi Can anyone tell me why my form script fails at this line <form action="$_SERVER" method="POST"> when running on my ISP which is using PHP... -
what's wrong with this form mail script?
Hi James, WA Universal Email is a commercially available Dreamweaver extension that is fully-loaded with premium features. The extension supports... -
Simeon #2
Re: Coldfusion mail script and flash form question
Well since your cfm page doesnt ever get displayed you could write the dump of
the form object to a file so you can view it. This would allow you to see what
was submitted by flash. You could do somehting like
<cfsavecontent variable="dumpdata">
<cfdump var="#form#" />
</cfsavecontent>
<cffile action="write" file="#expandPath('./')#dump.html" output="#dumpData" />
Then you should be able to hit that page and see what your form submitted. I
didnt test that code but it should get you started.
Simeon Guest



Reply With Quote

