very common to us to get the value of the post input type with data. but now i want to get if the checbox is check or unchecked. here is my code:
while (!$listof_artist->EOF) {
$id = $listof_artist->fields['id'];
$arr_id[] = $id;
echo "<tr><td><input type='checkbox' value='".$id."' name='chkid[]' id='chkid[]' /></td>";
}
if(isset($_POST['submit'])){
foreach($_POST['chkid'] as $checkbox){
//code for add
}
here is my algorithm: if submit is post then
for each checbox is check
//add
foreach checbox not check
//code for not check
Please help. thank you