Re: Hitting return in a textarea box...
| From: | Richard Lynch | Date: | Fri, 26 Jul 2002 16:37:28 +0000 |
| Subject: | Re: Hitting return in a textarea box... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-109805@lists.php.net to get a copy of this message | ||
>I'm putting together a message board, and I'm having
>problems with hitting the return(enter) key within my
>textarea.
>
>I've looked around for a solution, I tried
>wrap="hard", wrap="soft" and wrap="vitual" and none of
>them worked (should they? I may have done it wrong?)
>and I also tried nohardbreaks and nosoftbreaks, but I
>think they may be no longer supported.
>
>Is this a case for regex? If so, can someone perhaps
>point me to an article on how to accomplish this?
>Thanks very much for any help.
Use WRAP=VIRTUAL
The other choices for WRAP are morally wrong! :-)
WRAP=VIRTUAL will give you exactly what the user typed -- Not some
stupidly-wrapped text that happens to be wrapped at the size of the input
box, which is irrelevant to anything resembling reality, much less one that
will rip out the line breaks the user *wants* in their text.
Once you've done that, you need to be aware that the *BROWSER* don't give a
damn about line breaks. Which is why when you *DISPLAY* the text to the
user (not when you store it in the db!) you want to use:
http://php.net/nl2br
--
Like Music? http://l-i-e.com/artists.htm
I'm looking for a PRO QUALITY two-input sound card supported by Linux (any
major distro). Need to record live events (mixed already) to stereo
CD-quality. Soundcard Recommendations?
Software to handle the recording? Don't need fancy mixer stuff. Zero (0)
post-production time. Just raw PCM/WAV/AIFF 16+ bit, 44.1KHz, Stereo
audio-to-disk.