5 Replies Latest reply on Jan 29, 2008 12:16 PM by kglad

    Validation

    E.S.D.
      Hi

      I desperately need help with my validation scripting as I have re-scripted it numerous times, and the end bit still doesnt work. The fields get validated, but no PHP gets uploaded at the end when all fields are filled in.

      The script is as follows ...

      on (release) {

      nameValid = true;
      emailValid = true;
      phoneValid = true;
      messageValid = true;
      // =======================================
      if (name == "") {
      nameValid = false
      info = " Please type in your name";
      }
      if (message == "") {
      messageValid = false
      info = "Please type in a message";
      }
      if (email.indexOf("@") == -1 && email.indexOf(".") == -1) {
      emailValid = false;
      info="Please type in a Valid email address.";
      }
      if (phone == "") {
      phoneValid = false
      info = "Please type in a Contact Number.";

      }
      if (nameValid || emailValid || messageValid || contactValid){
      loadVariablesNum("contact_1.php", 0, "POST");
      info="";
      }
      }

      Thanks!