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 "<br><textarea name='aria' cols='50' rows='2'>$string</textarea>"; Did you type this from memory or paste it in? You have n\ instead of the backslash before the n. I think that $string="-line1\n-line2\n-line3" ; would give you the line breaks you want. HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg94174/pgp00000.pgp
Description: PGP signature