Re: Hitting return in a textarea box...
| From: | Tom Rogers | Date: | Thu, 25 Jul 2002 01:07:44 +0000 |
| Subject: | Re: Hitting return in a textarea box... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109390@lists.php.net to get a copy of this message | ||
Hi,
Thursday, July 25, 2002, 4:26:15 AM, you wrote:
JL> I'm putting together a message board, and I'm having
JL> problems with hitting the return(enter) key within my
JL> textarea.
JL> I've looked around for a solution, I tried
JL> wrap="hard", wrap="soft" and wrap="vitual" and none of
JL> them worked (should they? I may have done it wrong?)
JL> and I also tried nohardbreaks and nosoftbreaks, but I
JL> think they may be no longer supported.
JL> Is this a case for regex? If so, can someone perhaps
JL> point me to an article on how to accomplish this?
JL> Thanks very much for any help.
JL> Jesse
JL> ______________________________________________________________________
JL> Post your ad for free now! http://personals.yahoo.ca
I use wrap="soft" in the textarea input and then to display I use
nl2br(htmlentities($content));
--
Best regards,
Tom