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 > "" tags instead of "" 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 =

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       : 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 sends out ""

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       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 Steve Buehler
To give tabs in html, you might want to try using       instead of \t Steve At 06:57 AM 10/13/2003, you wrote: Wang Feng wrote: The page source shows: The problem might be right here --+ (closing html tag)

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

2003-10-13 Thread Wang Feng
8 PM Subject: Re: [PHP] \n \t don't work!!! > 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 &

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

2003-10-13 Thread Steve Buehler
;[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: > >

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 tags. Otherwise you need to translate the \n's into 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 does NOT

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 "? : : 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 Marek Kilimajer
Wang Feng wrote: The page source shows: The problem might be right here --+ (closing html tag)| | Hello World Program ?> ***

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

2003-10-13 Thread Wang Feng
nal Message - From: "Chris 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

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: > I suppose your manual was n

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

[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 ne