![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
12/06/2011, 08:52
|
![Avatar de valenti_92](http://static.forosdelweb.com/customavatars/avatar337426_4.gif) | | | Fecha de Ingreso: enero-2010 Ubicación: Manresa
Mensajes: 126
Antigüedad: 15 años, 1 mes Puntos: 4 | |
Respuesta: problema con canvio de variable Modifica esto:
$texto = nl2br($HTTP_POST_VARS[url]);
Por esto:
$texto =$_POST[url];
Y en esta linea:
$lineas = explode ( '<br />' , $texto );
Prueba esto:
$lineas = explode ( '\n\r' , $texto );
$lineas = explode ( '\r\n' , $texto );
$lineas = explode ( '\n' , $texto );
$lineas = explode ( '\r' , $texto );
Son las diferentes formas como se puede interpretar un salto de línea. Si alguna te va bién ya lo tienes resuelto ^^ |