1 Reply Latest reply on Sep 21, 2006 6:38 PM by kglad

    Submit a form to asp

    Brett_Butcher
      So, I'm totally stuck. I'm trying to submit a form with a mix of hidden and visible fields such as Name, Email, Comments to an asp process page. So far, the action script sends the data coded into the swf file (ie the field names for the input boxes), but it won't submit the data entered into the input text boxes by the online user. Here is my actionscript:

      on (release) {
      var myLoadVars:LoadVars = new LoadVars();
      myLoadVars._recipients = "myemail@gmail.com";
      myLoadVars._subject = "Comments";
      myLoadVars.Comments = Comments.text;
      myLoadVars.Email = Email.text;
      myLoadVars.Name = Name.text;
      myLoadVars._replyToField = Email.text;
      myLoadVars.send(" http://www.mysite.com/process.asp","_blank","POST");
      }

      The fields beginning with an underscore are hidden and the others are visible. I am using TextInput and TextArea components in Flash 8 to build the form. Any ideas about what I'm doing wrong?