Ver Mensaje Individual
  #4 (permalink)  
Antiguo 05/03/2010, 11:30
kriss8725
 
Fecha de Ingreso: mayo-2009
Mensajes: 242
Antigüedad: 14 años, 11 meses
Puntos: 2
Respuesta: Problema con salto de linea

Agrego la funcion que em indican nl2br(); pero no me funciona me sigue mandado seguidos los datos al archivo de texto sin el salto, o no se si estoy utilizando mal esa funcion:

Código PHP:
if($submitted){
      
$i=0;
      while(
$i $txtcant){
       
$i2=1;
       
$num="";
       
$numero1 $txtlada.$txtrestriccion;
       while(
$i2 5){
        
$aleatorio rand(0,9);   
        
$num $num.$aleatorio;
        
$i2++;
       }
       if(
$txtcant-1==$i){
        
$cel.= $num.' '.'Nom'.$num.' '.'<'.$numero1.$num.'>';
       }else{
        
$cel.= $num.' '.'Nom'.$num.' '.'<'.$numero1.$num.'>'.';';
        echo 
'<br/>';
       }
       
$i++;
      }
      
$fd fopen ("numeros.txt","w");
      
fwrite ($fd,nl2br($cel));
      
fclose($fd);
     }