RE: [PHP] Line breaks in textareas
| From: | Ozemail ) | Date: | Mon, 30 Oct 2000 01:21:02 +0000 |
| Subject: | RE: [PHP] Line breaks in textareas | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22588@lists.php.net to get a copy of this message | ||
Use the "\n" in your text ie
$foo = "this is a test for a\n newline";
print "<textarea>$foo</textarea>\n";
> -----Original Message-----
> From: Tyler Longren [mailto:tyler.longren@midiowa.net]
> Sent: Monday, October 30, 2000 10:12 AM
> To: PHP-General
> Subject: [PHP] Line breaks in textareas
>
>
> Hello list,
>
> Is there anyway to detect line breaks in textareas? For example, when a
> user hits the enter key, the cursor moves down a line. Is there something
> to do this in the <textarea> tag? I've done this before, but I don't
> remember how I accomplished it.
>
> Thanks,
> Tyler Longren
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>