0 Replies Latest reply on Nov 5, 2007 8:13 PM by Mary_Alice

    Flash Form

    Mary_Alice
      Regarding Flash form: For example, when someone inputs information on the form, the information typed should appear next to the titles that will come into my email. But the typed information does not appear, only the titles come into my email. Hopefully, someone can solve the problem. I think it is an actionscript problem.
      I also want my thank you page to appear after viewer clicks the Submit button. But that does not appear. Why?

      Here is my current scripting for the Actionscript and PHP. See the scripting below.

      MaryAlice
      art.design@comcast.net

      Attach Code

      Flash 8 ActionScript 1.0/2.0 used for FORM:

      onClipEvent(data){
      _root.nextFrame();
      }

      --------------------

      Flash 8 ActionScript 1.0/2.0 used for SUBMIT button:

      on (release) {
      this._parent.loadVariables("analysisformphp.php", "POST");
      gotoAndPlay(" http://www.ecowaterpb.com/thanks.html")
      }

      -----------------------------------------
      PHP script in separate file:

      <?php

      $SendTo .= "art.design@comcast.net";
      $subject .= "My AnalysisForm Reply";

      $headers .= "From: " . $_POST["email"]. "\r\n";
      $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
      $headers .= "Return-Path: " . $_POST["email"]. "\r\n";

      $message .= "household: " . $_POST["household"]. "\r\n";
      $message .= "water supply: " . $_POST["water"]. "\r\n";
      $message .= "softener: " . $_POST["soft"]. "\r\n";
      $message .= "bottled water: " . $_POST["bottle"]. "\r\n";
      $message .= "comments: " . $_POST["comments"]. "\r\n";
      $message .= "name/business: " . $_POST["namebus"]. "\r\n";
      $message .= "street: " . $_POST["address1"]. "\r\n";
      $message .= "city/state/zip: " . $_POST["address2"]. "\r\n";
      $message .= "phone: " . $_POST["phone"];
      $message .= "email: " . $_POST["email"];

      mail($SendTo, $subject, $headers, $message);

      header('Location: http://ecowaterpb.com/thanks.html');

      ?>