title: How to stop people getting around my JavaScript Validation?
body: <p>I have a registration form on my website and I have 3 input boxes for the Date of Birth where are coded like this...</p>
  
  <pre><code>&lt;input name="dd" id="dd" type="text" value="DD" size="2" /&gt;
  &lt;input name="mm" id="mm" type="text" value="MM" size="2" /&gt;
  &lt;input name="yyyy" id="yyyy" type="text" value="YYYY" size="4" /&gt;
  </code></pre>
  
  <p>I then have a JavaScript validation page which is run on Submit. This page checks that the fields are not empty and that they are between a certain number e.g. between 1 and 31 for Day<br />
  Here is the JavaScript for the 'dd' field...</p>
  
  <pre><code>var nulld=document.forms["create"]["dd"].value;
  if (nulld==null || nulld=="")
    {
    alert("Please enter a day between 1 and 31");
    return false;
    }
  var dd=document.forms["create"]["dd"].value;
  if (dd &gt;= 1 &amp;&amp; dd &lt;= 31)
    {}else{
    alert("Please enter a day between 1 and 31");
    return false;
    }
  </code></pre>
  
  <p>So I have this code, but iv noticed that someone is disabling JavaScript on this computer and is creating loads of accounts with incorrect data.
  How do I stop this from happening? or is the only way to do it to add code that checks if JavaScript is disabled and divert them to an error page like this...</p>
  
  <pre><code>&lt;noscript&gt;&lt;meta http-equiv="refresh" content="1;url=nojavascript.html"&gt;&lt;/noscript&gt;
  </code></pre>
  
  <p>Is there another way to do it where users can still create an account without JavaScript but still have the Validation?</p>