What's the point of all of this:
$i = 0;
foreach ($_POST['checkbtn'] as $key => $value) {
if ($i == 0) $status .= $value;
else $status .= ''.$value;
$i++;
}
? I only ask, because this:
if ($i == 0) $status .= $value;
else $status .= ''.$value;
is no different than this:
$status .= $value;
which means that the entire foreach() statement (including the superfluous $i counter) could be reduced to this:
$status = implode('', $_POST['checkbtn']);
Next, note that your current form structure prevents you from knowing which checked checkbox corresponds to which "id" value. Unchecked checkboxes are not POST'ed at all, thus if your while() statement loops over 3 rows from your DB, and you only check the box for one of them (let's say the second one), all you're going to see in $_POST['checkbtn'] is this:
Array
(
[0] => 1
)
What you should do instead is modify your checkbox elements to include the ID value as the array index, e.g.:
<input name="checkbtn[123]" type="checkbox" value="1">
(where 123 is the ID from the database). That way, you would get a more useful array structure in $_POST['checkbtn'] like:
Array
(
[123] => 1
)
since PHP won't auto-number the checkbox values (as opposed to just using "[]" in the field name).
Also note that your "id" hidden input is completely useless and should be removed. Likewise, your hidden "send" element is useless (since it always contains a constant value) and should also be removed.