Need help with flash contact form

software development


I created a contact form in flash 8 using actionscript. I need help with gathering the correct variables for DH. Any help is gratefully appreciated.

function sendForm() {
gatherForm.email_to = “My Email Address Will Go Here”;
gatherForm.visitor_name = contactForm.userName.text;
gatherForm.visitor_email = contactForm.userEmail.text;
gatherForm.visitor_comments = contactForm.userComments.text;

gatherForm.send(“What Should I Put Here?”, “_blank”, “POST”);


I’m presuming you’ve already defined your loadVars earlier in the fla.
I’d typically use sendAndLoad with a second loadVars, then use this second one to confirm successful submission using its onLoad event handler (responding to data echoed by your mail script), but send will work fine albeit without any ‘response’.

Where you have put “What should I put here” you put the url of a php script.
This would parse the post data,
e.g $name=$_POST[‘visitor_name’];
then use these values in php’s mail function to send an email.

East Coast Interactive