title: Validation HTML Radio Button
body: <p>I am facing a problem with simple validating of radio button though database. </p>
  
  <p>What I want to do is to just simply check whether radio button for each question is selected or not. I know the simple checking. But as I am using php variable name for every radio button name, it's very hard to convert to javascript variable and check. And I am stuck at this point. </p>
  
  <pre><code>&lt;form id="formID" method="post" action="user_anger_quiz.php?rating_finished=true"&gt;
  
  &lt;input type="radio" name="&lt;?php echo $question_form_name; ?&gt;" value="&lt;?php echo $question_id ?&gt;,1"/&gt;
  &lt;input type="radio" name="&lt;?php echo $question_form_name; ?&gt;" value="&lt;?php echo $question_id ?&gt;,2" /&gt;
  
  &lt;p id="anger_rating_submit"&gt;
  &lt;input type="submit" value="Rate my anger level"/&gt;&lt;/p&gt;
    &lt;/form&gt;
  </code></pre>
  
  <p>Any suggestions would be appreciated in advanced.</p>