Hola a todos, necesito su valiosa ayuda tengo una consulta y los resultados los presento en un formulario ahi agrego 6 checkbox para insertar unas opciones como imprimo los resultados que se seleccionaron en el formulario adjunto el codigo
$sql = "select * from discipulo_sin_documento_nombre_corto a INNER JOIN dbo.VW_ULTIMOESTADO b
ON a.vc_iddiscipulo = b.VC_IDDISCIPULO
INNER JOIN dbo.VC_RELA_DISCIESTADO C
ON B.VC_IDRELADISCESTA = C.VC_IDRELADISCESTA
where VC_IDUNIDADOPERA=691 AND C.VC_IDRAZON IN (2,4,5,6,7,8,9,10,11,12) and VC_IDMINISTERIO='8' ";
$rs = odbc_exec( $conn, $sql );
if ( !$rs ) { exit( "Error en la consulta SQL" ); }?>
<form action="muestra.php" name="form" method="post">
<tr>
<th scope="col"><table width="433" height="48" style="font-size: 7pt" >
<thead>
<tr>
<th width="172">NOMBRE</th>
<th width="101">MINISTERIO</th>
<th width="20">DV</th>
<th width="20">C.O</th>
<th width="20">C.E</th>
<th width="20">C.A</th>
<th width="20">ALB</th>
<th width="24">VIG</th>
</thead>
<tbody>
<!--//$nom1=$row['VC_NOMBRE1'];$ape=$row['VC_APELLIDO1'];$nomb=$nom1.$ape;echo $nomb ;-->
<?php while( $row = odbc_fetch_array($rs) ) { ?>
<tr>
<?php $nomb=$row['VC_NOMBRE1'];
$min=$row['VC_DESC_MINISTERIO'];
echo"<input type='hidden' name='fila1[$nomb][0]' value='$nomb' />
<td><input id='nombres' type='text' name='nombr' value='$nomb'readonly style='font-size: 7pt'></td>
<td ><input id='min' type='text' name='min' value='$min' readonly style='font-size: 7pt'></input></td>
<td ><input type='checkbox' name='fila1[$nomb][1]' value=1></td>
<td ><input type='checkbox' name='fila1[$nomb][2]' value=2></td>
<td ><input type='checkbox' name='fila1[$nomb][3]' value=3></td>
<td ><input type='checkbox' name='fila1[$nomb][4]' value=4></td>
<td ><input type='checkbox' name='fila1[$nomb][5]' value=5></td>
<td ><input type='checkbox' name='fila1[$nomb][6]' value=6></td>
";?>
</tr>
<?php
}
?>
<div class="demo">
Selecciona fecha: <input id="datepicker" type="text" name="fecha">
<input type="submit" name="nuevafecha" value="Enviar"/>
</div>
</form>