1 Reply Latest reply on Aug 28, 2007 5:04 PM by kglad

    Need help with Flash/PHP online form, please help, URGENT!

    EFAREM
      ive made my online form with the scripts shown below, when i submit i dont get any errors... but i also dont receive any emails from the form, if you can see anything that ive done wrong please help me out..

      -------------------------------------------------------PHP mailer.php------------------------------------------------------------------

      <?php


      $fname = $_REQUEST["fname"];
      $mail = $_REQUEST["mail"];
      $add1 = $_REQUEST["add1"];
      $add2 = $_REQUEST["add2"];
      $add3 = $_REQUEST["add3"];
      $town = $_REQUEST["town"];
      $county = $_REQUEST["county"];
      $postcode = $_REQUEST["postcode"];
      $telephone = $_REQUEST["telephone"];
      $subject = $_REQUEST["subject"];
      $message = $_REQUEST["message"];

      $full_message = $_SERVER['REMOTE_ADDR'] . "\n\n" . $message;
      $message= $full_message;


      $fname = stripslashes($fname);
      $mail = stripslashes($mail);
      $add1 = stripslashes($add1);
      $add2 = stripslashes($add2);
      $add3 = stripslashes($add3);
      $town = stripslashes($town);
      $county = stripslashes($county);
      $postcode = stripslashes($postcode);
      $telephone = stripslashes($telephone);
      $subject = stripslashes($subject);
      $message = stripslashes($message);


      $subject = "Vision Ten Online Form ". $subject;


      if(isset($fname) and isset($mail) and isset($add1) and isset($add2) and isset($add3) and isset($town) and isset($county) and isset($postcode) and isset($telephone) and isset($subject) and isset($message)){
      mail("james@steve55595.plus.com", $fname, $mail, $add1, $add2, $add3, $town, $county, $postcode, $telephone, $subject, $message "From: $mail");
      }
      ?>

      -------------------------------------------------------PHP-------------------------------- ----------------------------------


      -----------------------------------------------ACTIONSCRIPT for the form----------------------------------------------------------

      stop();
      System.useCodepage = true

      this.sent.onRelease = function () {
      my_vars = new LoadVars ();
      my_vars.fname = fname_box.text;
      my_vars.mail = mail_box.text;
      my_vars.add1 = add1_box.text;
      my_vars.add2 = add2_box.text;
      my_vars.add3 = add3_box.text;
      my_vars.town = town_box.text;
      my_vars.county = county_box.text;
      my_vars.postcode = postcode_box.text;
      my_vars.telephone = telephone_box.text;
      my_vars.subject = subject_box.text;
      my_vars.message = message_box.text;

      if (my_vars.fname !="" and my_vars.mail !="" and my_vars.add1 !="" and my_vars.town !="" and my_vars.county !="" and my_vars.postcode !="" and my_vars.telephone !="" and my_vars.subject !="" and my_vars.message !="") {
      my_vars.sendAndLoad("script/mailer.php", my_vars, "POST");
      gotoAndStop(2);
      } else {
      error_clip.gotoAndPlay(2);
      }
      my_vars.onLoad = function (){
      gotoAndPlay(3);
      };
      };
      fname_box.onSetFocus = mail_box.onSetFocus = add1_box.onSetFocus = add2_box.onSetFocus = add3_box.onSetFocus = town_box.onSetFocus = county_box.onSetFocus = postcode_box.onSetFocus = telephone_box.onSetFocus = subject_box.onSetFocus = message_box.onSetFocus = function () {
      if (error_clip._currentframe !=1) {
      error_clip.gotoAndPlay(6);
      };
      };

      -----------------------------------------------ACTIONSCRIPT------------------------------- ---------------------------