title: How to get multiple html array contents with php
body: <p>I have an issue using jquery to append an create more input tags, so i can collect multiple data and be treated as an array. But each time i process it with php, only one data is sent.Kindly help out.</p>
  
  <pre><code>&lt;div class="half" id="bs_cat"&gt;
      &lt;form method="POST"&gt;
          &lt;div&gt;
              &lt;div class="label"&gt;Create Category&lt;/div&gt;
              &lt;div class="label" id="bs_cat1"&gt;&lt;input type="text" class="form_element" name="bs_category[]" placeholder="Football, handball, basketball e.t.c" /&gt;&lt;/div&gt;&lt;br /&gt;
          &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;div class="label half center"&gt;
      &lt;input type="submit" class="button" value="Create Categorie(s)" /&gt;&amp;nbsp;&amp;nbsp;
      &lt;a class="button" href="#" onclick="$('#bs_cat').append('&lt;div&gt;'+$('#bs_cat1').html()+'&lt;a href=\'#\' onclick=\'$(this).parent().remove(); return false;\'&gt;&gt;&gt;Remove this item&lt;&lt;&lt;/a&gt;&lt;/div&gt;'); return false;"&gt;Add Another Category&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Here is the php i have processing it</p>
  
  <pre><code>$bs_category = $_POST['bs_category'];
      $n = 0;
      foreach($bs_category as $c){
          if(!empty($c)){
              $bs = $afrisoft-&gt;antiHacking($c);
              $sQl = $afrisoft-&gt;dbcountchanges("INSERT INTO sport (bs_categories) 
              VALUES ('$bs')");
              if($sQl &gt; 0) $n++;
          }
      }
  </code></pre>
  
  <p>I'll appreciate any help i can get. Thanks</p>