title: How to send a radio button and a checkbox value from a html form?
body: <p>I'm creating a form with select, input, radio buttons and checkboxes and others.
  Part of the code where is the part of my question is like this: </p>
  
  <p><strong>formulario.html</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form action="suporte_email.php" method="post" name="formulario" id="formulario" &gt;
  
      &lt;div class="conjunto7" id="conjunto7"&gt;
           &lt;label for="garantia"&gt;Garantia&lt;/label&gt;&lt;br&gt;
             &lt;div&gt;
          &lt;input id="radio1" type="radio" name="radio"  value="Sim"&gt;
             &lt;label for="radio1"&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt; Sim &lt;/label&gt;
          &lt;/div&gt;
          
          
             &lt;div&gt;
            &lt;input id="radio2" type="radio" name="radio"  value="Não"&gt;
             &lt;label for="radio2"&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt; Não &lt;/label&gt;
          &lt;/div&gt;
      &lt;/div&gt;
          
          &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;
          
      &lt;div class="conjunto8" id="conjunto8"&gt;
           &lt;label for="contrato"&gt;Contrato&lt;/label&gt;&lt;br&gt;
              &lt;div&gt;
             &lt;input id="checkbox1" type="checkbox" name="checkbox"  value="Sim"&gt;
              &lt;label for="checkbox1"&gt;&lt;span&gt;&lt;/span&gt; Sim &lt;/label&gt;
           &lt;/div&gt;
                    
           &lt;div&gt;
             &lt;input id="checkbox2" type="checkbox" name="checkbox"  value="Não"&gt;
           &lt;label for="checkbox2"&gt;&lt;span&gt;&lt;/span&gt; Não &lt;/label&gt;
           &lt;/div&gt;
      &lt;/div&gt;
  
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>suporte_email.php</strong></p>
  
  <p>
  
  <pre><code>//Get Data
  $nome = $_POST['nome'];                    
  $empresa = $_POST['empresa'];              
  $contacto = $_POST['contacto'];            
  $email = $_POST['email'];                  
  $marca = $_POST['marca'];                   
  $other = $_POST['other'];                    
  $serial_number = $_POST['serial_number'];     
  $garantia = $_POST['garantia'];               
  $contrato = $_POST['contrato'];             
  $permissoes = $_POST['permissoes'];           
  $descricao_avaria = $_POST['descricao_avaria'];
  $checkbox = $_POST['checkbox'];
  $radio = $_POST['radio'];
  
     // Parse/Format/Verify Data
     $to      = "teste@gmail.com"; 
     $from    = '';
     $subject = "Formulário de Suporte";
  
     $email_body = "$crlf De: $nome$crlf Email: $email$crlf Assunto: $subject$crlf$crlf Empresa: $empresa$crlf Contacto: $contacto$crlf Marca: $marca$crlf Outra: $other$crlf Número de Série: $serial_number$crlf Garantia: $garantia$crlf Contrato: $contrato$crlf Tipo de Suporte: $permissoes$crlf$crlf Descrição da Avaria: $descricao_avaria";
  
     // Setup EMAIL headers, particularly to support UTF-8
     // We set the EMAIL headers here, these will be sent out with your message
     // for the receiving email client to use.
     $headers = 'From: ' . $from  . $crlf .
             'Reply-To: ' . $email  . $crlf .
             'Content-Type: text/plain; charset=UTF-8' .  $crlf .
             'Para: Website'  .  $to . $crlf .
             'X-Mailer: PHP/' . phpversion();
  
  
     // Then we pass the headers into our mail function
     mail($to, $subject, $email_body, $headers);
     header('Location: agradecimentos.html');
  
  }
  </code></pre>
  
  <p>Basically the variables from the radio button and from the checkbox don't appear when I receive the email. I want to receive the selected value from the radio and from the checkbox.</p>
  
  <p><strong>P:S:</strong> Also tried to change where is <code>$garantia</code> for <code>$radio</code> and where is <code>$contrato</code> for <code>$checkbox</code>.</p>