Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/11/2007, 15:27
tenazin
 
Fecha de Ingreso: abril-2005
Mensajes: 22
Antigüedad: 19 años
Puntos: 0
Re: crear cantidad de campos de acuerdo a variable

el else nada te lo puedes ahorrar ....

Código PHP:
<form>
<?php
if ($documentos == "si")
{
    for (
$i 1$i <= cantidocu$i++)
   {
      echo 
"  Fecha: <input name='fecha$i' type='text' /><br>
                  Importe: <input name='importe$i' type='text' />
               "
;
   }
}
?>
</form>