title: how to Pass array variable in PHP POST?
body: <p>would like to ask if its possible/how to pass array variable in php using javascript</p>
  
  <p>i have this following code</p>
  
  <pre><code>jQuery("#save").click(function() {
  
  
      var val = [];
      jQuery('#themes:checked').each(function(i){
        val[i] = jQuery(this).val();
      });
  
  
  
      jQuery("#status").load("&lt;?=$config['publicdomain']?&gt;/saveProfile.php?wthemes="+val);
  
  
  });
  </code></pre>
  
  <p>this is the form field </p>
  
  <pre><code>&lt;span&gt;
      &lt;input id="themes" name="themes" type="checkbox" value="theme a"&gt;
      &lt;input id="themes" name="themes" type="checkbox" value="theme b"&gt;
  &lt;/span&gt;
  </code></pre>