Re: Line Breaks in <textarea>
| From: | David Robley | Date: | Fri, 29 Jun 2001 01:35:31 +0000 |
| Subject: | Re: Line Breaks in <textarea> | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55556@lists.php.net to get a copy of this message | ||
On Thu, 28 Jun 2001 04:44, Nathan Cook wrote:
> Hello-
>
> I am selecting a value from a blob field in a mysql db. The value
> looks like this:
>
> Test 1....2...3 \r \n <br> %0%D Test
>
> When I print that value in a <TEXTAREA>$value</TEXTAREA> -- The
> textarea returns exactly what you see above. I am trying to get it to
> display a line break (so that I can store the line breaks in the db).
> If you can shed any light on this subject, please share.
>
> Thank You,
> Nathan Cook
> ncook@pcsedu.com
You might want to make your textarea tag thus:
<TEXTAREA WRAP=VIRTUAL>$value</TEXTAREA>
to show any EOLs as line breaks.
Cue <RANT> from Richard Lynch on TEXTAREA :-)
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Spell chequers dew knot work write.