Ver Mensaje Individual
  #13 (permalink)  
Antiguo 25/03/2009, 10:36
Avatar de argy
argy
 
Fecha de Ingreso: octubre-2007
Ubicación: Longitud 75º Latitud 18º Sur
Mensajes: 614
Antigüedad: 17 años, 4 meses
Puntos: 18
Respuesta: SELECT de select marcados con checkbox

Cita:
Iniciado por Pelao Ver Mensaje
form action='facturar.php' method="POST">
<input name="submit" type=submit value='Facturar' />
<table>
<td width="4%" align="center" class="texto"><div align="center" class="Estilo2">
<input name="seleccion[]" type="checkbox" value="<?=$id?>" />
</div></td>
<td width="4%" align="center" class="texto"><div align="center" class="Estilo2">
<?=$id?>
</div></td>
<td width="8%" align="center" class="texto Estilo2"></font> <span class="texto">
<?=$fecha?>
</span> </font></td>
<td width="10%" align="center"><div align="center" class="Estilo2"><span class="links">
<?=$cliente?>
</span></div></td> </table>
</form>
a ver escribe el siguiente código en el archivo que procesa el formulario
Código :
Ver original
  1. <?php
  2. if(isset($_POST['id']))
  3. {
  4. echo $_POST['id'];
  5. }
  6. else
  7. {
  8. echo 'HORROR no existe la variable';
  9. }
  10. ?>
existe la superglobal $_POST['id']????

XD no creo que sea demasiado miope.
__________________
Software libre para un mundo libre.

Eventualmente en el foro.