1 Reply Latest reply on Mar 16, 2010 11:33 AM by PrintingByDBE

    Contact Page Help

    PrintingByDBE Level 1

      Hello All!

       

      hopefully this is a quick fix...

      im having a problem with 1 line of code...?

       

      Contact, Layer 'Actions', Frame 1, Line 8     (IN RED)      1084: Syntax error: expecting rightparen before and.

        • 1. Re: Contact Page Help
          PrintingByDBE Level 1

          stop();

           

          System.useCodepage = true;

           

          send_btn.onRelease = function() {

           

              my_vars = new LoadVars();

           

              my_vars.sender = email_box.text;

           

              my_vars.subject = subject_box.text;

           

              my_vars.message = message_box.text;

           

           

          if (my_vars.sender != "" and my_vars.subject != "" and my_vars.message != "") {


                  my_vars.sendAndLoad("mailer.php", my_vars, "POST");
                  gotoAndStop(2);
              } else {
                  error_clip.gotoAndPlay(2);
              }
              my_vars.onLoad = function() {
                  gotoAndStop(3);
              };
          };
          email_box.onSetFocus = subject_box.onSetFocus=message_box.onSetFocus=function () {
              if (error_clip._currentframe != 1) {
                  error_clip.gotoAndPlay(6);
              }
          };