<input type="checkbox" name="p[1]"
<input type="checkbox" name="p[2]"
<input type="checkbox" name="p[3]"
<input type="checkbox" name="p[4]"
$p=$_POST['p'];
echo $p[1] . $p[2] . $p[3] . $p[4];
<input type="checkbox" name="p[par]"
<input type="checkbox" name="p[teach]"