I'd say $string="-line1\n -line2\n-line3"
Newlines are \n, not n\

"Adi" <[EMAIL PROTECTED]> schreef in bericht
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:

tx in advance for any help

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to