title: Not getting radio buttons properly in post array
body: <p>I have block of code which is loaded while clicking a particular button through Ajax.</p>
  
  <p>I have given each input a name like <code>txtname[]</code>, <code>country[]</code> and also <code>radiobtn[]</code>.</p>
  
  <p>The problem is, when I am filling these 3 fields twice and selecting a radio button in the <strong>second iteration</strong> and then printing post array through <code>print_r($_POST);</code></p>
  
  <p>is showing the following results below:</p>
  
  <p><code>[txtname] =&gt; Array ( [0] =&gt; xyz[1] =&gt; abc)[country] =&gt; Array ( [0] =&gt; India[1] =&gt; United Kingdom ) [radiobtn] =&gt; Array ( [0] =&gt; true )</code></p>
  
  <p>It shouldn't show like:</p>
  
  <blockquote>
    <p>[txtname] => Array ( [0] => xyz[1] => abc)[country] => Array ( [0] => India[1] => United Kingdom ) <strong>[radiobtn] => Array ( [0] => ""[1] => true)</strong></p>
  </blockquote>
  
  <p>So how to go about knowing which iteration radio button is selected?
  Any help appreciated. </p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;input type="radio"  name="radiobtn[]" value="true"&gt;
  &lt;input  type="text" name="txtname[]" &gt;
     &lt;select name="country[]"&gt; 
  &lt;option value="country" selected="selected"&gt;Select Country&lt;/option&gt; 
  &lt;option value="United States" &gt;India &lt;/option&gt; 
  &lt;option value="United Kingdom"&gt;United Kingdom&lt;/option&gt; 
     &lt;/select&gt;
  </code></pre>