Muchas gracias por tu respuesta! realmente si tienes razón no es recomendable trabajar directamente con el checkbox así que la solución fue usar un input hidden y agregar un condición al checkbox si se selecciona agregar "si" al input hidden si se des selecciona agregar "no" al input asi en el foreach uso el input para acceder al valor
Les dejo el codigo html
Código HTML:
Ver original<form action="Untitled-4.php" method="POST" name="formx">
<input type="checkbox" name="active" value="1" checked="checked" onclick=" if (document.formx.active.checked==true) { document.getElementById('active_1').value = 'si'; } else { document.getElementById('active_1').value = 'no';}">
<input type="text" id="active_1" name="activeM" value="si" >
<input type="text" name="n" size="12" value="Kevin"> <input type="text" name="id" size="12" value="003">
y asi puedo agregar mas datos dinámicos. claro esta el nombre de las casillas aumenta con codigo php