title: How can I tell which radio button is selected with node.js
body: <p>I have a form with two radio button and I'm using posting the request and using the body parser npm package to see the values of the form inputs, I have two radio buttons on the form like this:</p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>    &lt;p&gt;
        &lt;input class="with-gap" name="group1" type="radio" id="test1" /&gt;
        &lt;label for="test1"&gt;Teacher&lt;/label&gt;
      &lt;/p&gt;
      &lt;p&gt;
        &lt;input class="with-gap" name="group1" type="radio" id="test2" /&gt;
        &lt;label for="test2"&gt;TA&lt;/label&gt;
      &lt;/p&gt;
  </code></pre>
  
  <p>The only problem is when I console.log req.body the only info on the radio buttons I get is: </p>
  
  
  
  <pre class="lang-js prettyprint-override"><code>{ group1: 'on' }
  </code></pre>
  
  <p>It doesn't tell me which radio button was clicked and I change one of the names to group2 it allows the user to click both radio buttons, so how can I determine which radio button was clicked?</p>