title: How do I check if one of two radio buttons is checked with PHP?
body: <p>How do I check if one of two radio buttons is checked with PHP?</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;form action="" method="post"&gt;
  
      &lt;b&gt;Yes or No?&lt;/b&gt;&lt;br&gt;
      Yes &lt;input type="radio" name="template" value="Yes"&gt; 
      NO &lt;input type="radio" name="template" value="No"&gt;&lt;br&gt;&lt;br&gt;
  
      &lt;input type="submit" name="send" value="Skicka internlogg"&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>I don't want one of this two radio buttons to be checked from the beginning. I want an if-statement that continue with the code if one of them are checked by the user. And if not I want to print an error code like "Please fill the whole form" or something. How?</p>
  
  <p>I then want to check for multiple statements from radio buttons and text boxes, how?</p>
  
  <p><code>if($_POST['sr'] &amp;&amp; $_POST['relevant'] &amp;&amp; if(isset($_POST['article'])) &amp;&amp; if(isset($_POST['template'])) &amp;&amp; $_POST['text']) {}</code> ?????</p>