Page 1 of 1

New Line Char problem.

Posted: Sun Nov 09, 2003 6:07 pm
by bagofbones
I notice that "\n" does not work in IE6.0 . I am just a newbie of PHP. Could anyone help me handle this problem?Thanks a lot. :D

Posted: Sun Nov 09, 2003 6:28 pm
by volka
it's not an IE-specific problem. \n is not a linebreak in HTML (unless in a <pre></pre> block).
<br /> is (http://www.w3.org/TR/html4/struct/text.html#edef-BR).
You might be also interested in http://php.net/nl2br