Re: textarea new line

From: Date: Fri, 05 Jul 2002 13:09:11 +0000
Subject: Re: textarea new line
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-105646@lists.php.net to get a copy of this message
I'd say $string="-line1\n -line2\n-line3" Newlines are \n, not n\ ... "Adi" <adipublic@home.ro> schreef in bericht 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\ -line2 n\-line3"; echo "<br><textarea name='aria' cols='50' rows='2'>$string</textarea>"; but i see a single line instead of: -line1 -line2 -line3 tx in advance for any help

« previous php.general (#105646) next »