Tema: checkbox
Ver Mensaje Individual
  #5 (permalink)  
Antiguo 04/10/2010, 09:03
moises_vicent
 
Fecha de Ingreso: noviembre-2009
Mensajes: 33
Antigüedad: 14 años, 5 meses
Puntos: 0
Respuesta: checkbox

Código PHP:
Ver original
  1. <form action="Fac_1_A.php" method="post">
  2. </br>
  3. <p>
  4.  
  5. <table width="318" border="0" align="center">
  6.   <tr>
  7.     <td width="155" align="center"  style="font-size:13px; color: #666666">Rif de la empresa a facturar:</td>
  8.    
  9.     <td width="52"><input name="ID" id="ID" type="text" style="font-size:10px; color: #666666" align="center" size="13"/></td>
  10.    
  11.     <td width="24">
  12.       <input type="submit" name="Submit" value="Crear Factura" style="font-size:11px; color: #666666" align="center" />
  13.     </td>
  14.   </tr>
  15. </table>
  16.  
  17.  
  18.  
  19. </p>
  20. <table width="100%" border="1" align="center">
  21.   <tr bgcolor="#999999">
  22.       <td width="15%" align="center" style="font-size:13px; color: #666666">
  23.                      <b>                    
  24.                      ID                  </b>      </td>
  25.       <td width="72%" align="center" style="font-size:13px; color: #666666">
  26.                      <b>                    
  27.                      Descripción                    </b>      </td>
  28.       <td width="13%" align="center" style="font-size:13px; color: #666666">
  29.                      <b>                    
  30.                      Evaluar</b></td>
  31.   </tr>
  32.  
  33.  
  34.  
  35.  
  36.                <?php
  37.                        
  38. for ($i=1;  $row= mysql_fetch_array($registros); $i++) {
  39.  
  40.                                      
  41.                          printf("
  42.  
  43.               <tr >
  44.                    <td 'style=font-size:13px; color: #666666' >
  45.                          
  46.                          <input value= '$row[ID]' name='iden' id='iden' size='1' style='font-size:12px; color: #666666' readonly='readonly'/>  
  47.                          
  48.                     </td>
  49.                    
  50.                    <td 'style=font-size:13px; color: #666666' >
  51.                          
  52.                           $row[descripcion]
  53.                    
  54.                     </td>
  55.                    
  56.                     <td 'style=font-size:13px; color: #666666' >                                           
  57.                          <input type='checkbox' name='$i' value='$row[$i]'/>".$i."
  58.  
  59.                     </td>                                      
  60.              </tr>");}
  61.  
  62.  
  63.  
  64.              
  65.                          mysql_free_result($registros);
  66.                          mysql_close($conexion);
  67.                          
  68.                 ?>             
  69.  
  70. </table>                 
  71. </form>

la otra pagina lo recib haci: y deberia tomar el valor ya lo he cambiado de todas las formas logicas y posibles!
<?php
echo "Facturacion".$_POST['$i'];
?>