title: How to set the value of Gender radio button while editing the form?
body: <p>I have a Gender Row with radio buttons male &amp; female. when i register as first time the values of radio button will store in database. Now my question is if I edit that row again it want to come(that means checked) with that value as male/female. how to make it?</p>
  
  <p>Note : Doing with php.</p>
  
  <p>HTML Script :</p>
  
  <pre><code>&lt;label class="control-label" &gt;Gender:&lt;/label&gt;
      &lt;div class="row"&gt;
        &lt;div class="col-md-6" &gt;
          &lt;label class="radio-inline"  &gt;
            &lt;input type="radio" name="gender" id="optradio" checked&gt;Male
          &lt;/label&gt;
          &lt;label class="radio-inline"&gt;
            &lt;input type="radio" name="gender" id="optradio"&gt;Female
          &lt;/label&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>