5 Replies Latest reply on Aug 10, 2007 10:11 AM by Newsgroup_User

    flash AS wont comm with PHP: why?

    all_begin
      I have made a simple form with Flash 8, and on the first frame on the main timeline, i have addes he following AC code:

      fieldsFilled = new Object();
      fieldsFilled.onKeyUp = function() {
      if(destMail_txt.text != ' ' && senderName_txt.text != ' ' && senderBody != ' ' ) {
      send_btn.enabled = true;
      }
      else {
      send_btn.enabled = false;
      }
      }
      Key.addListener(fieldsFilled);
      send_btn.enabled = false;
      var sendMail_lv:LoadVars = new LoadVars();
      send_btn.onRelease = function() {
      sendMail_lv.destMail = destMail_txt.text;
      sendMail_lv.senderName = senderName_txt.text;
      sendMail_lv.senderBody = senderBody_txt.text;
      sendMAil_lv.sendAndLoad( http://PATHtoMYserver/sendMail.php", sendMail_lv, "POST");
      }

      Then i have a PHP file on my server that i tested and works perfectly. The problem is thta Flash doesn't want to communicate with PHP: what can i do? Is there a problem in the script? I've tried several times during the last two days, but not success.

      Thanks,
      Vinnie