title: Contact Form 'Name' field validation troubles
body: <p>I'm new to PHP and have been piecing together my own contact form...</p>
  
  <p>I'm  having trouble getting the form to not-validate in scenario 2 below. Code Also below..</p>
  
  <p><strong>SCENARIO 1:</strong> 2 letters or numbers inputted = error pops up and mail does not send.</p>
  
  <p><strong>SCENARIO 2:</strong> 3+ numbers are inputted = error pops up, but mail DOES send.</p>
  
  <pre><code>$(document).ready(function(){
  $("#contact_email").focus(function(){
    if($("#contact_name").val().length &lt; 3){
      $("#contact_name").css("border", "solid 1px #D295B5");
    }else {
      if(allLetter($("#contact_name").val())){
        $("#contact_name").css("border", "solid 1px #D295B5");
      }else {
        $("#contact_name").css("border", "solid 1px #DADB93");
      }
    }
  });
  
  
  function allLetter(inputtxt){
  var letters = /^[A-Z a-z]+$/;
  if(inputtxt.match(letters)){return false;}
  else{return true;}
  }
  </code></pre>
  
  <p>Any idea's what I am missing? So that if ANY numbers are inputted into the name field, it will not send.</p>