Re: make hitting enter in a text box = <br>
| From: | caocao | Date: | Tue, 14 May 2002 02:06:05 +0000 |
| Subject: | Re: make hitting enter in a text box = <br> | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97478@lists.php.net to get a copy of this message | ||
You can use Javascript to do so. When user submits, the script will replace
all
\n with <br>.
Or you can do it with your php script on server. There is a function called
nl2br().
"Rob Packer" <rapacker@yellowbananas.com> дÈëÏûÏ¢ÐÂÎÅ
:20020514013608.57670.qmail@pb1.pair.com...
> I have a simple script for a newsletter, with a text area box for someone
to
> type in their newsletter. Is it possible to make it so when someone hits
> enter with the text box it will equal <br>?
>
> TIA
>
> Robert
>
> --
> -- NRC ONLINE --
>
>