Use input array:
<input type="checkbox" name="id[]" value="id_a"> <input type="checkbox" name="id[]" value="id_b"> <input type="checkbox" name="id[]" value="id_c">
$_REQUEST['id'] can be accessed:
foreach($_REQUEST['id'] as $id) { echo $id; }
Outputs
id_a
id_b
id_c
Side note: this works with $_POST and $_GET (and not just $_REQUEST ). Generally speaking, although $_REQUEST should be avoided if possible.
source share