Código HTML:
<form name="ffiscalesadd" id="ffiscalesadd" action="fiscalesadd2.php" method="post" <input type="hidden" name="a_add" id="a_add" value="A"> <table width="702" border="0"> <tr> <td width="480" rowspan="2"><table width="468" class="ewTable"> <tr class="ewTableRow"> <td width="91" class="ewTableHeader">Dui<span class='ewmsg'> *</span></td> <td width="416"<?php echo $fiscales->dui->CellAttributes() ?>><span id="cb_x_dui"> <input type="text" name="x_dui" id="x_dui" title="" size="30" value="<?php echo $fiscales->dui->EditValue ?>"<?php echo $fiscales->dui->EditAttributes() ?> /> (Solo debe de posee numeros.) </span></td> </tr> <tr class="ewTableAltRow"> <td class="ewTableHeader">Nit<span class='ewmsg'> *</span></td> <td<?php echo $fiscales->nit->CellAttributes() ?>><span id="cb_x_nit"> <input type="text" name="x_nit" id="x_nit" title="" size="30" value="<?php echo $fiscales->nit->EditValue ?>"<?php echo $fiscales->nit->EditAttributes() ?> /> (Solo debe de posee numeros.)</span></td> </tr> <tr class="ewTableRow"> <td class="ewTableHeader">Nombre<span class='ewmsg'> *</span></td> <td<?php echo $fiscales->nombre->CellAttributes() ?>><span id="cb_x_nombre"> <input type="text" name="x_nombre" id="x_nombre" title="" size="30" maxlength="35" value="<?php echo $fiscales->nombre->EditValue ?>"<?php echo $fiscales->nombre->EditAttributes() ?> /> (Nombre completo.)</span></td> </tr> <tr class="ewTableAltRow"> <td class="ewTableHeader">Oficina Fiscal<span class='ewmsg'> *</span></td> <td<?php echo $fiscales->oficina_fiscal->CellAttributes() ?>><span id="cb_x_oficina_fiscal"> <input type="text" name="x_oficina_fiscal" id="x_oficina_fiscal" title="" size="30" maxlength="50" value="<?php echo $fiscales->oficina_fiscal->EditValue ?>"<?php echo $fiscales->oficina_fiscal->EditAttributes() ?> /> </span></td> </tr> <tr class="ewTableRow"> <td class="ewTableHeader">Cargo<span class='ewmsg'> *</span></td> <td<?php echo $fiscales->cargo->CellAttributes() ?>><span id="cb_x_cargo"> <input type="text" name="x_cargo" id="x_cargo" title="" size="30" maxlength="50" value="<?php echo $fiscales->cargo->EditValue ?>"<?php echo $fiscales->cargo->EditAttributes() ?> /> </span></td> </tr> </table></td> <td width="212"><table width="150" class="ewTable"> <tr class="ewTableRow"> <td width="142" class="ewTableHeader">Nivel Academico <span class='ewmsg'> *</span></td> </tr> <tr> <td><? $db="capacitaciones"; $tabla="nivel_academico"; $conexion=mysql_connect("localhost","root","") or die (mysql_error()); $db=mysql_select_db($db,$conexion) or die (mysql_error()); $resultado=mysql_query("SELECT * FROM $tabla"); while ($row = mysql_fetch_array($resultado)){ echo "<input type=\"checkbox\" name=\"seleccion[]\" value=\"".$row['codigo']."\">".$row['nombre']."<br>"; } ?> </td> </tr> </table></td> </tr> <tr> <td> </td> </tr> </table> <p> </p> <p> <input type="submit" name="Submit" value="Enviar" > </form>