3 Replies Latest reply on Oct 2, 2006 8:02 PM by ggshow

    Why does´nt  the form work - Here´s the code

      In navigation.swf there is a moviceclip called mcForm

      The code in the mcForm:
      Frame 1:
      System.useCodepage = true;
      stop();
      Frame 2:
      if (skickat eq "ja") {
      gotoAndStop("klart");
      }
      Frame 3:
      gotoAndPlay(_currentframe-1);

      Frame 4 with label start:
      stop();


      The code on the “send” button in mcForm in navigation.swf:
      on (release) {
      loadVariables(" http://www.homesit.se/phpmail.php", "", "GET");
      _parent.play();//This statement is not the problem.
      }

      Here´s phpmail.php:

      <?PHP

      $rubrik = "Mail from your homesite";
      $text = "$name have send a mail from you homesite.

      He/She wrote this:

      $message";
      mail($dinmail, $rubrik, $text,
      "From:".$email."\nReply-To:".$email);
      echo("skickat=ja");
      ?>

      Folders on my server:
      The phpmail.php is in the root in a subfolder called flash_content
      The navigation.swf file is in the same subfolder (flash_content)

      I must place the form in a movieclip, because the form is doing a nice tweening made by Laco tweening method.

      I appreciate every answer.