Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/02/2011, 14:55
marcofbb
Invitado
 
Mensajes: n/a
Puntos:
Respuesta: Usar un submit para varios input

Usas While

Código PHP:
Ver original
  1. <?php
  2. $desde=0001;
  3. while($desde<=6018)
  4. {
  5. ?>
  6. <input type="text" name="doc" value="<?php if (@file_get_contents('http://www.web.com/archivo<?=$desde?>.doc')) echo 'SI'; else echo 'NO';?>" />
  7.  
  8. <input type="text" name="tiff" value="<?php if (@file_get_contents('http://www.web.com/archivo<?=$desde?>.tif')) echo 'SI'; else echo 'NO';?>" />" />
  9. <?php
  10.   $desde++;
  11. }
  12. ?>

Pero como son muchos archivos, te va tirar error en time OUt.


+Informacion sobre bucles:
http://www.marcofbb.com.ar/tipos-de-bucles-en-php/