2 Replies Latest reply on Apr 7, 2008 8:47 AM by skarab

    Passing Flash Variables to ASP

    Kat19762203
      Hello everyone,

      New problem, I even read other peoples posts. I am working on a program that would send a subject to an .asp form, but the subject line doesn't want to pass.

      The code that I have in my flash program in the last frame is:
      mySendVars = new LoadVars();
      mySendVars.Subject = "Subject Line";
      mySendVars.send("mail.asp", "_self", "POST");

      It is to open the mail.asp form, which it does, but alas, no subject line.

      The script that I have to accept the subject line is:
      <% @Language = "VBScript" %>
      <%
      Option explicit
      Response.Buffer= true
      Response.Expires = -1441


      Session("Email")=("myemail@myemail.com")
      Session("Subject")

      %>
      <html>

      <head>
      <title><% Response.Write (Session("Subject")) %></title>
      <link rel="stylesheet" type="text/css" href="l.css">

      <script LANGUAGE="JavaScript">
      code to process if the form is filled out properly
      <p align="center">You have successfully completed the <% Response.Write (Session("Subject")) %>Program.
      To do the evaluation<a href="otherprogram.asp">click here</a>.</p>

      The evaluation also opens, but there is no subject line....which isn't a surprise if the subject variable isn't passing.

      Any help would be appreciated!

      Thank you all in advance!
        • 1. Re: Passing Flash Variables to ASP
          Level 7
          Looks more like an ASP issue than a flash problem. Where in your form
          processing do you set Session("Subject")? Why don't you get the subject
          value directly from the posted data? i.e.

          <title><% Response.Write (Request.Form("Subject")) %></title>


          • 2. Re: Passing Flash Variables to ASP
            skarab
            I'm working on a similar problem where the asp script won't send the email body. What I'm wondering about your problem is whether the way you specify the subject ("Subject Line") is an instance name or variable of the text field. The asp script I'm using utilizes instance names.

            So my question is, do you have the subject text field named properly in your Flash movie?