Coldfusion mail script and flash form question

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. #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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139