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