RE: [PHP] Newbie's question about \n

2002-07-22 Thread Niklas Lampén
If you check the source of your code you'll see that in source the text is in two lines. \n doesn't work as br, so this is about how HTML works, not plain text. Niklas -Original Message- From: KK Lee [mailto:[EMAIL PROTECTED]] Sent: 22. heinäkuuta 2002 14:01 To: [EMAIL PROTECTED]

Re: [PHP] Newbie's question about \n

2002-07-22 Thread Tom Rogers
Hello KK, Monday, July 22, 2002, 9:00:47 PM, you wrote: KL Dear ALL, KL It seems that i have a very silly problem. KL I can't get the new line escape character to work. KL the following is my SIMPLE script and corresponding output. KL PHP script: KL !DOCTYPE HTML PUBLIC KL-//W3C//DTD

Re: [PHP] Newbie's question about \n

2002-07-22 Thread Neil Freeman
nl2br() KK Lee wrote: ** This Message Was Virus Checked With : SAVI 3.59 May 2002 Last Updated 8th July 2002 ** Dear ALL, It seems that i

Re: [PHP] Newbie's question about \n

2002-07-22 Thread Anas Mughal
I often use: br\n That way I get a new line in a browser and plain text as well. KK Lee [EMAIL PROTECTED] wrote: Dear ALL, It seems that i have a very silly problem. I can't get the new line escape character to work. the following is my SIMPLE script and corresponding output. PHP

Re: [PHP] Newbie's question about \n

2002-07-22 Thread Martin Clifford
Think of it this way: br creates a line break in HTML Output, \n creates a line break in HTML Code. echo I really\n like\n PHP!; HTML Code: I really like PHP! HTML Output: I really like PHP! HTH It seems that i have a very silly problem. I can't get the new line escape character to