[PHP] Re: textarea new line

2003-01-23 Thread Foong
u can use nl2br() to convert \n to tags b4 echo the string in textarea. Foong "Neil M" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Adi wrote: > > i want to add in textarea a string with new line tag in it. how to do that? > > > > my try: > > $string="-lin

Re: [PHP] Re: textarea new line

2003-01-23 Thread David T-G
Adi, et al -- I somehow missed the original message. Odd... ...and then Neil M said... % % Adi wrote: % >i want to add in textarea a string with new line tag in it. how to do that? % > % >my try: % >$string="-line1n\ -line2 n\-line3"; % >echo "$string"; Did you type this from memory or paste

Re: [PHP] Re: textarea new line

2003-01-23 Thread Ernest E Vogelsinger
At 12:55 23.01.2003, Neil M said: [snip] >Adi wrote: >> i want to add in textarea a string with new line tag in it. how to do that? >> >> my try: >> $string="-line1n\ -line2 n\-line3"; >> echo "$string"; >> >> but i see a single line instead of: >> -line1 >

[PHP] Re: textarea new line

2003-01-23 Thread Neil M
Adi wrote: i want to add in textarea a string with new line tag in it. how to do that? my try: $string="-line1n\ -line2 n\-line3"; echo "$string"; but i see a single line instead of: -line1 -line2 -line3 tx in advance for any help Hello For a new line in a text area you cant use html 's Yo

[PHP] Re: textarea new line

2002-07-05 Thread Richard Lynch
>i want to add in textarea a string with new line tag in it. how to do that? > >my try: >$string="-line1n\ -line2 n\-line3"; >echo "$string"; > >but i see a single line instead of: >-line1 >-line2 >-line3 > >tx in advance for any help In addition to using \n instead of n\, you also should do: ec

[PHP] Re: textarea new line

2002-07-05 Thread colin mcdonald
use \n Adi wrote: > i want to add in textarea a string with new line tag in it. how to do that? > > my try: > $string="-line1n\ -line2 n\-line3"; > echo "$string"; > > but i see a single line instead of: > -line1 > -line2 > -line3 > > tx in advance for any help > -- PHP General Mailing Lis

[PHP] Re: textarea new line

2002-07-05 Thread Michiel Lange
I'd say $string="-line1\n -line2\n-line3" Newlines are \n, not n\ ... "Adi" <[EMAIL PROTECTED]> schreef in bericht 014b01c22424$5f999b00$9600a8c0@ady">news:014b01c22424$5f999b00$9600a8c0@ady... i want to add in textarea a string with new line tag in it. how to do that? my try: $string="-line1n\