title: Get RadioButton value with php
body: <p>I can get the value of text input from a form.</p>
  
  <p>Like this:</p>
  
  <pre><code>&lt;label for="lblName"&gt;Name (*):&lt;/label&gt;
  &lt;input type="text" name="txtBoxName" id="txtBoxName"&gt;
  </code></pre>
  
  <p>I submit the form with a validation check first:</p>
  
  <pre><code>&lt;form name="contactDataForm" action="sendMail.php" onsubmit="return ValidationCheck()" method="post"&gt;
  </code></pre>
  
  <p>This is sendMail.php:</p>
  
  <pre><code>$Name = $_POST['txtBoxName'];
  </code></pre>
  
  <p>This works, but how you do it for a RadioButton value? The selected radio button value.</p>
  
  <pre><code>&lt;input type="radio" name="test1" id="test1" value="test1" required&gt; TEST 1&lt;br&gt;
      &lt;input type="radio" name="test2" id="test2" value="test2"&gt; TEST 2&lt;br&gt;
  </code></pre>