Re: textarea new line
| From: | Neil M | Date: | Thu, 23 Jan 2003 11:55:30 +0000 |
| Subject: | Re: textarea new line | ||
| References: | 1 | Groups: | php.general php.general |
| Request: | Send a blank email to php-general+get-132798@lists.php.net to get a copy of this message | ||
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>"; but i see a single line instead of: -line1 -line2 -line3 tx in advance for any helpHello For a new line in a text area you cant use html <br>'s You need to use either \n OR \r\n Thanks Neil