title: Bootstrap 3 how keep active last btn-group radio after submit?
body: <p>I have a PHP application that uses Bootstrap 3. If in the form I use 'radio', after the user submit and history back, the last selected option will continue checked,but when using the "", I can not retrieve the last option selected, Because the "active" in "label" continues on the default option.</p>
  
  <pre><code>&lt;div&gt;
      &lt;input type="radio" name="gender1" value="male" checked&gt;Male
      &lt;input type="radio" name="gender1" value="female"&gt; Female
      &lt;input type="radio" name="gender1" value="other"&gt; Other
  &lt;/div&gt;
  
  
  &lt;div class="btn-group btn-radio" data-toggle="buttons"&gt;
  &lt;label class="btn btn-primary active"&gt;
      &lt;input name="gender2" value='male' type="radio" checked&gt;Male
  &lt;/label&gt;
  &lt;label class="btn btn-primary"&gt;
      &lt;input name="gender2" value='female' type="radio"&gt;Female
  &lt;/label&gt;
  &lt;label class="btn btn-primary"&gt;
      &lt;input name="gender2" value='other' type="radio"&gt;Other
  &lt;/label&gt;&lt;/div&gt;
  </code></pre>
  
  <p>teste</p>