create the checkbox value name as array: ids[]
<form method="POST" action="process.php">
<input type="checkbox" name="ids[]" value="checkbox">
<input type="checkbox" name="ids[]" value="checkbox">
</form>
when you post the form
you can get their values for example:
<?php
if(isset($_POST["ids"]))
{
foreach($_POST["ids"] AS $key)
{
print $key."<br>";
}
}
?>