1 Reply Latest reply on Aug 13, 2006 7:42 AM by kglad

    mail script problem

    Level 7
      on a PHP server with MySQL, how can i make this mail form script send to
      me@mysite.com Below is the code:

      function over(i)
      {
      if (this["txt" + i] == this["label_0" + i])
      {
      this["txt" + i] = "";
      } // end if
      } // End of the function
      function out(i)
      {
      if (this["txt" + i] == "")
      {
      this["txt" + i] = this["label_0" + i];
      } // end if
      } // End of the function
      label_01 = "Name";
      label_02 = "E-mail";
      label_03 = "Message";
      txt1 = label_01;
      txt2 = label_02;
      txt3 = label_03;
      this.onEnterFrame = function ()
      {
      text_field_1.onSetFocus = function ()
      {
      over(1);
      };
      text_field_1.onKillFocus = function ()
      {
      out(1);
      };
      text_field_2.onSetFocus = function ()
      {
      over(2);
      };
      text_field_2.onKillFocus = function ()
      {
      out(2);
      };
      text_field_3.onSetFocus = function ()
      {
      over(3);
      };
      text_field_3.onKillFocus = function ()
      {
      out(3);
      };
      };

      Thanks to anyone who can answer it. :-)


        • 1. Re: mail script problem
          kglad Adobe Community Professional & MVP
          that's not a mail form script. it just blanks a textfield that has default values (when it gets focus) and resets to default values (in an empty textfield when it loses focus).

          p.s. it's not well-coded, either. the onEnterFrame handler is unnecessary and wasteful.