title: Form validation causing wrong input in database from form field
body: <p>I'm using a javascript that validates a form by radio buttons being checked, depending on which button is checked I want a value for that button submitted to MySQL but when I select a button it submits the button name to MySQL. changing the name of the button causes the script to stop working. How can I change the script so it allows the button value to post to MySQL instead of the button name? </p>
  
  <p><a href="http://jsfiddle.net/Ma376/1/" rel="nofollow">jsFiddle</a></p>
  
  <pre><code>function ValidateForm(form) {
  ErrorText = "";
  if ((form.job_status[0].checked === false) &amp;&amp; (form.job_status[1].checked === false)) {
      alert("Before you can get a signature you must mark a selection.\n Is the work completed or do you need to return?");
      return false;
  }
  if (ErrorText = "") {
      form.submit();
  }
  </code></pre>
  
  <p>}</p>