1 Reply Latest reply on Nov 1, 2007 7:41 AM by kglad

    PHP still not working

    Mary_Alice
      The form information does not come to email, even with the revisions. Also, I need the form, after clicking on SUBMIT button, to go to a Thank You page (which I created in Flash 8).
      See the scripting with the revisions but still that does not help. Form goes no where.

      ACTIONSCRIPT the Flash form:

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

      ACTIONSCRIPT in Submit on the form:

      on (release) {
      this._parent.loadVariables("analysisformphp.php", "POST");
      }

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

      PHP script in the PHP 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: " . $_POST["water supply"]. "\r\n";
      $message .= "soft: " . $_POST["softener"]. "\r\n";
      $message.= "bottle: " . $_POST["bottled water"]. "\r\n";
      $message .= "comments: " . $_POST["comments"]. "\r\n";
      $message = "name/bus: " . $_POST["name/business"]. "\r\n";
      $message .= "address1: " . $_POST["address"]. "\r\n";
      $message .= "address2: " . $_POST["city/state/zip"]. "\r\n";
      $message .= "phone: " . $_POST["phone"];

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

      ?>
      ---------------------------------------------------------

      I really need this to work. There has to be one little thing that is not working. Server told me they accept PHP files. It sure is so strange why the form information does not come to my email.

      Mary Alice
      art.design@comcast.net