New Line Char problem.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bagofbones
Forum Newbie
Posts: 1
Joined: Sun Nov 09, 2003 6:07 pm

New Line Char problem.

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
Post Reply