7 Replies Latest reply on Aug 2, 2007 4:18 AM by Justin G

    Sending form data using loadVars

    Stu_from_TDG
      I am trying to send a simple flash form to an asp page using loadVars, The asp page is not receiving the variables any idea why? here is the actionscript: I have tried tracing the dataOut and I get what is in the form fields

      ------------------------------------------------------------------------------------------ --------------
      stop();
      function sendForm():Void {
      var dataOut:LoadVars = new LoadVars();

      dataOut.fcomments=comments_txt.text;
      dataOut.fname=name_txt.text;
      dataOut.femail=email_txt.text;
      dataOut.ftest="this is static"

      trace( dataOut.toString() );


      dataOut.send("flashform.asp","POST");


      }

      send_btn.onRelease = function() {
      if (name_txt.text == "" || email_txt.text == "" || comments_txt.text == "") {


      status_txt.text = "Please complete the entire form ...";
      } else {
      status_txt.text = "";
      sendForm();
      }
      };
      ------------------------------------------------------------------------------------------ --------------

      I have tested the asp page with an html form and it works fine.

      puzzled!

      any help appreciated thanks

      Stu