title: Button Submit false works, but not the redirecting
body: <p>Currently, I am working on a formula. I created the check function and they are all working. If the check function returns false nothing gets saved, but it still redirects to the congrats page?</p>
  
  <p>here the code:</p>
  
  <pre><code>function check() {
      var msg = "";
  
      if ($_POST['Bustransfer'] == "ja" ) {
          msg = "wrong\n";
          document.formular.v6.style.backgroundColor = "#FF0000";
      } 
  
      if (msg == "") return(true);
      else {
          alert(msg);
          return(false);
      }
  }
  </code></pre>
  
  <p>and then I got the following in the body section:</p>
  
  <pre><code>&lt;form method="post" action="Email.php" name="formular" onsubmit="return check()"&gt;
  </code></pre>
  
  <p>I don't get it, hope you can help me. Cheers!</p>