title: PHP form with multiple checkboxes/Bootstrap buttons
body: <p>I'm trying to make a contact form where users are supposed to toggle different checkboxes (within checkbox groups), which i've made to buttons with a combination of Bootstrap Button Groups (<a href="http://getbootstrap.com/components/#btn-groups" rel="nofollow">http://getbootstrap.com/components/#btn-groups</a>) and Bootstrap Toggle (<a href="http://www.bootstraptoggle.com" rel="nofollow">http://www.bootstraptoggle.com</a>), enter their email address and submit. The results of the user input should be sent to a specified recipient email, with following body</p>
  
  <ul>
  <li>Email address</li>
  <li>Values of checked checkboxes/toggled buttons</li>
  </ul>
  
  <p>Selection of at least one checkbox within each group is required, and users should be able to check all checkboxes if the choose to.</p>
  
  <p>I'm fairly comfortable with HTML/Bootstrap, but not at all with PHP - I can barely decipher PHP codes and I've stared at 100+ questions and tutorials about PHP forms, only to get more confused, which is why i have no PHP code to show (email.php i just a empty doc waiting to be filled the correct PHP code).</p>
  
  <p>I have no idea where to begin, and absolutely zero idea of how to manage the multiple checkboxes/buttons with PHP.</p>
  
  <p>FYI: Don't mind some of the HTML is in Danish.</p>
  
  <p>This is my HTML:</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="assets/helpers/email.php" method="post"&gt;             
     
     iPhone model&lt;br&gt;&lt;br&gt;
                           &lt;div class="btn-group" data-toggle="buttons" &gt;
      &lt;button type="button" class="btn btn-primary"&gt; &lt;input type="checkbox" value="5" name"5" id="5"&gt;iPhone 5/5S&lt;/button&gt;
      &lt;button type="button" class="btn btn-primary"&gt; &lt;input type="checkbox" value="6" name"6" id="6"&gt;iPhone 6&lt;/button&gt;
      &lt;button type="button" class="btn btn-primary"&gt; &lt;input type="checkbox" value="6p" name"6p" id="6p"&gt;iPhone 6 Plus&lt;/button&gt;
  
  
      &lt;/div&gt;
      &lt;br&gt;    &lt;br&gt;
      &lt;br&gt;
  
    
     Bumper model&lt;br&gt;&lt;br&gt;
      &lt;div class="btn-group" data-toggle="buttons" &gt;
      &lt;button type="button" class="btn btn-primary"&gt;&lt;input type="checkbox" value="FK" name"FK"&gt;Firkantet&lt;/button&gt;
      &lt;button type="button" class="btn btn-primary"&gt;&lt;input type="checkbox" value="RU" name"RU"&gt;Rund&lt;/button&gt;
  
      &lt;/div&gt;
      &lt;br&gt;
      &lt;br&gt;
          &lt;br&gt;
  
     Lås&lt;br&gt;&lt;br&gt;
      &lt;div class="btn-group" data-toggle="buttons"&gt;
      &lt;button type="button" class="btn btn-primary"&gt;&lt;input type="checkbox" value="US" name"FL"&gt;Flet&lt;/button&gt;
      &lt;button type="button" class="btn btn-primary"&gt;&lt;input type="checkbox" value="MS" name"SK"&gt;Skruer&lt;/button&gt;
      &lt;/div&gt;
      
      
   
  &lt;br&gt;   &lt;br&gt; &lt;br&gt;
  
  
     Farve&lt;br&gt;&lt;br&gt;
  &lt;div class="btn-group" data-toggle="buttons"&gt;
      &lt;button type="button" class="btn btn-primary"&gt;&lt;input type="checkbox" value="BA" name"BA"&gt;Sort&lt;/button&gt;
      &lt;button type="button" class="btn btn-primary"&gt;&lt;input type="checkbox" value="SI" name"SI"&gt;Sølv&lt;/button&gt;    
      &lt;button type="button" class="btn btn-primary"&gt;&lt;input type="checkbox" value="GR" name"GR"&gt;Grå&lt;/button&gt;
   &lt;button type="button" class="btn btn-primary"&gt;&lt;input type="checkbox" value="CH" name"CH"&gt;Champagne&lt;/button&gt;
  
      &lt;/div&gt;
      &lt;br&gt;    &lt;br&gt;
  
                
  &lt;br/&gt;
  &lt;input type='text' name='email' placeholder="Din email" /&gt;
  &lt;/p&gt;
  &lt;input type='submit' name='submit' value='Skriv mig op' /&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>