I have few checkbox like this,
<input type='checkbox' name='name[]' value='1' />
<input type='checkbox' name='name[]' value='2' />
<input type='checkbox' name='name[]' value='3' />
<input type='checkbox' name='name[]' value='4' />
<input type='checkbox' name='name[]' value='5' />
And my php processing code is below,
<?php
$check=$_POST['name'];
foreach($check as $arr){
//code for saving data in database
}
My problem is, I am trying to send the check box data via jquery/ajax. But I could not send those data to the php page as an array.
Please tell me I could I do that.