Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/09/2008, 08:38
yeikh
 
Fecha de Ingreso: septiembre-2008
Mensajes: 45
Antigüedad: 15 años, 8 meses
Puntos: 0
Pregunta Problema variable con contenido HTML

Os comento, estoy utilizando un editor wysing, y en si lo que hace es pasar el contenido de un text area por POST. El problema que tengo es que al recogerlo
Código PHP:
$texto $_POST['elm1']; 
es como si estuviera asignando a la varieble
Código PHP:
$texto '<p style=\"text-align: center;\">We recommend <a href=\"http://www.getfirefox.com\" target=\"_blank\">Firefox</a> and <a href=\"http://www.google.com\" target=\"_blank\">Google</a></p>';

echo 
"$texto"
en vez de
Código PHP:
$texto "<p style=\"text-align: center;\">We recommend <a href=\"http://www.getfirefox.com\" target=\"_blank\">Firefox</a> and <a href=\"http://www.google.com\" target=\"_blank\">Google</a></p>";

echo 
"$texto"
Que sería como debería de estar para que el texto salga formateado. ¿ Como puedo solucionarlo? (si es posible porque ya no se que narices cambiar)

Gracias por todo y un saudo del yeikh