pardon me for not explaining things in details.
1)i created the checkbox using a while loop whereby i extract all the userID, and input into the checkbox. im using smarty that is why i return the html code as string.
so the code should look like this:
//make checkbox
function makeContent()
{
$str="<table bordre=0...>";
$str.="<tr>";
$str.="<td></td>";
$str.="</tr>";
...
while($row = mysql_fetch_array($recordsCount, MYSQL_ASSOC)) {
$strUserID = $row['userID'];//extract all customer details
$age= $row['age'];
$str.="<td><input type='checkbox' id='chkDelete[]' name='chkDelete[]' value='$strUserID'></td>";
$str.="<td>."$strUserID."</td>
$str.="<td>."$age."</td>
...
}//end of while loop
$str.="</table>";
return $str;
}
i can display the checkbox. however i could not delete the selected multiple 'checked' check box.
2)so the code u provide, is it sufficient? 😉