title: Keep radio button selected after a form submit
body: <p>I am using below code to keep the radio button selection after a form submission, but it keep resetting to the last button after form submission</p>
  
  <pre><code>&lt;input type="radio" name="button" value="Yes" &lt;?php if(isset($_POST['button']) == 'Yes')  echo ' checked="checked"';?&gt; /&gt;Yes
  &lt;input type="radio" name="button" value="No" &lt;?php if(isset($_POST['button']) == 'No')  echo ' checked="checked"';?&gt; /&gt;No
  </code></pre>
  
  <p>How can I keep the selection ?</p>