Ver Mensaje Individual
  #4 (permalink)  
Antiguo 07/11/2006, 16:26
Avatar de Nefertiter
Nefertiter
 
Fecha de Ingreso: enero-2003
Ubicación: Rosario
Mensajes: 1.316
Antigüedad: 21 años, 4 meses
Puntos: 9
lo que te dice el errror que es q tenes un salto de linea a cada variable tendrias q quitarle algun posible '\n'

podes usar tambien esta funcion para cada variable

Código PHP:
 function utrim($source){
       
$protect = array(
       
"<" => "&lt;",
       
">" => "&gt;",
       
"&" => "&amp;",
       
"\"" => "&quot;",
       
"'" => "'",
       
"\n" => " ",
       
"\t" => " ",
       
"\r" => " ",
       
"\0" => " ",
       
"\x0B" => "",
       
" " => ""
    
);
   
$temp ltrim($source,"\n\t\r\h\v\0 ");
   
$temp rtrim($temp,"\n\t\r\h\v\0 ");
   
$temp trim($temp,"\x7f..\xff\x0..\x1f");
   
strtr($temp$protect);
   return 
$temp;
  }