1 Reply Latest reply on Jun 16, 2010 5:10 AM by Ron Colmen

    submit form : echo issue

    Ron Colmen Level 2

      I'm getting the desired results but it goes to the FAILED frame? Any idea why this is happening?

       

      receiveLoad.onLoad = function(){

      if(this.sentemail) {

        _root.gotoAndStop("success");

      }

      else {

        _root.gotoAndStop("failed");

      }

      }

       

       

      PHP (return value if mail was sent successfully)

      mail($to, $subject, "", $headers);
      echo "sentemail";