Re: formatting textarea input on output
| From: | CPT John W. Holmes | Date: | Tue, 25 Mar 2003 22:38:57 +0000 |
| Subject: | Re: formatting textarea input on output | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141030@lists.php.net to get a copy of this message | ||
> i have a textarea in a form which gets inserted into a table in my
> database (mySQL). When displaying this text back to the screen, how do
> i retain the line breaks etc. that were in the original input?
I bet if you searched for "textarea" and "line breaks" you'd of found the
nl2br() function... but I'm not a betting man... unless there's money
involved... and beer.
---John Holmes...