2 Replies Latest reply on Sep 15, 2006 11:59 AM by Newsgroup_User

    Contact Page and PHP: Help, please.

    Amyrs
      I've created a contact page within Flash using the following actionscript:
      stop();

      var senderLoad:LoadVars = new LoadVars();
      var receiveLoad:LoadVars = new LoadVars();

      sender.onRelease = function() {
      senderLoad.theName = theName.text;
      senderLoad.theEmail = theEmail.text;
      senderLoad.theAddress = theAddress.text;
      senderLoad.thePhone = thePhone.text;
      senderLoad.theMessage = theMessage.text;
      senderLoad.sendAndLoad(" http://mydomain.com/mailExample.send.php",receiveLoad,POST);
      }

      And with the following PHP in Dreamweaver:

      <?PHP

      $to = "info@mydomain.com";
      $subject = "Contact Form Submission";
      $message = "Name: " . $theName;
      $message = "\nAddress: " . $theAddress;
      $message = "\nPhone: " . $thePhone;
      $message .= "\nEmail: " . $theEmail;
      $message .= "\n\nMessage: " . $theMessage;
      $headers = "From: $admin@simplypilatesnashville.com";
      $headers .= "\nReply-To: $theEmail";

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

      ?>

      My issue is that only Phone and Email are being sent to my To: address. I don't know why only two are inputs are sending while the others aren't... Any help would be appreciated!!

      Thanks,
      Aaron