2 Replies Latest reply on Jun 1, 2006 8:47 PM by kglad

    Need help with email form

    BykerGrove
      hi

      i have an email form within my flash movie. here the code on my send button:

      on (release) {
      if (name eq "" or email eq "" or message eq "") {
      gotoAndPlay("error");

      } else {
      loadVariablesNum("form.php", "0", "POST");
      gotoAndPlay("thanks");
      }
      }

      and here is the code in the form.php page:

      <?

      $to = "jools105@hotmail.com";
      $subject = "Website Enquiry";
      $msg = "$name\n";
      $msg .= "$email\n";
      $msg .= "$message\n";

      mail($to, $subject, $msg, "From: $name\nReply-To: $email\n");

      ?>

      What is happening, is that if any of the fields is left blank flash will go to the error frame. If all the fields have been filled in flash will play the 'thanks' frame.

      But when i check my inbox, i dont see the email.

      Is there something i have missed out ?

      any help very much appreciated

      btw im using flash mx pro 2004 exporting with player 6 and actionscript 1.0

      julian