title: PHP: Getting the value of a radio button and storing it into a database
body: <p>I have never really used radio buttons before. So what I am trying to achieve is, using two radio buttons 'Public' and 'Private'. This is for the user's profile. My HTML code for the buttons is;</p>
  
  <pre><code>&lt;div class="btn-group" data-toggle="buttons-radio"&gt;
      &lt;button type="button" class="btn btn-primary" id="privacy" name="privacy"   value="0"&gt;Private&lt;/button&gt;
      &lt;button type="button" class="btn btn-primary" id="privacy" name="privacy"   value="1"&gt;Public&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>As for the PHP, I'm not sure how to get the value and store it. Any help is appreciated!</p>