[PHP] \n \t don't work!!!

2003-10-13 Thread Wang Feng
Guys, These codes are copied from the manual: * echo (this is the simplest, an SGML processing instruction\n); echo This spans multiple lines. The newlines will be output as well; echo This spans\nmultiple lines. The

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Chris Hayes
At 13:22 13-10-03, you wrote: Guys, These codes are copied from the manual: * echo (this is the simplest, an SGML processing instruction\n); echo This spans multiple lines. The newlines will be output as well; echo This

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Marek Kilimajer
It DOES work, look at the source html code. Wang Feng wrote: Guys, These codes are copied from the manual: * echo (this is the simplest, an SGML processing instruction\n); echo This spans multiple lines. The newlines will be

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Wang Feng
They do work but you will not see that in the rendered html page (in a browser). Have a look at the source of the produced page and you will see the linebreaks. The page source shows: htmlbody/body/html I suppose

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Wang Feng
Hayes [EMAIL PROTECTED] To: Wang Feng [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, October 13, 2003 9:29 PM Subject: Re: [PHP] \n \t don't work!!! At 13:22 13-10-03, you wrote: Guys, These codes are copied from the manual: * echo

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Marek Kilimajer
Wang Feng wrote: The page source shows: htmlbody/body/html The problem might be right here --+ (closing html tag)| html | headtitleHello World

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Eugene Lee
On Mon, Oct 13, 2003 at 09:48:56PM +1000, Wang Feng wrote: : : Ok, Now I see what happen (maybe). : : So, the \n is not for the browser output, but for the *view source*? So, : it's different from the echo br? : : If so, what's the deal to do that? --- Makes it look nice if the user view : the

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Steve Buehler
If you want it to work with \n, then you will need to use the pre/pre tags. Otherwise you need to translate the \n's into br tags. \n is NOT an html tag so when you print them to the browser, it adds lines to the source, but as you might already know, a new line in the source of an html page

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Steve Buehler
]; [EMAIL PROTECTED] Sent: Monday, October 13, 2003 9:29 PM Subject: Re: [PHP] \n \t don't work!!! At 13:22 13-10-03, you wrote: Guys, These codes are copied from the manual: * echo (this is the simplest, an SGML processing instruction\n

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Wang Feng
Thank you all for pointing me to the *right* direction!!! Now I really understand why and what I can do with the \n in php. :-) cheers, feng - Original Message - From: Eugene Lee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 13, 2003 10:58 PM Subject: Re: [PHP] \n \t

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Steve Buehler
To give tabs in html, you might want to try using nbsp; nbsp; nbsp; instead of \t Steve At 06:57 AM 10/13/2003, you wrote: Wang Feng wrote: The page source shows: htmlbody/body/html The problem might be right here

RE: [PHP] \n \t don't work!!!

2003-10-13 Thread Jay Blanchard
[snip] To give tabs in html, you might want to try using nbsp; nbsp; nbsp; instead of \t [/snip] And one other thing I didn't see mentioned http://www.php.net/nl2br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Eugene Lee
On Mon, Oct 13, 2003 at 08:10:39AM -0500, Jay Blanchard wrote: : : [snip] : To give tabs in html, you might want to try using nbsp; nbsp; nbsp; : instead of \t : [/snip] : : And one other thing I didn't see mentioned http://www.php.net/nl2br Note that nl2br() is XHTML compliant, which means it

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Chris Shiflett
--- Eugene Lee [EMAIL PROTECTED] wrote: Note that nl2br() is XHTML compliant, which means it sends out br / tags instead of br tags. This is a problem on browsers that do poorly with mixed HTML and XHTML tag styles in the same body content. Which browsers does this refer to? Chris = My