Pagina del checkbox
Código HTML:
Ver original<input type="checkbox" value="1" name="txtValores[]"/> <input type="checkbox" value="2" name="txtValores[]"/> <input type="checkbox" value="3" name="txtValores[]"/> <input type="checkbox" value="4" name="txtValores[]"/>
Pagina php donde recibe los valores
Código PHP:
Ver original//Si se chulean todos los valores la impresion arrojaria los siguientes resultados
$valores = $_POST['txtValores'];
echo $valores[0];
//1
echo $valores[1];
//2
echo $valores[2];
//3
echo $valores[3];
//4