Re: formatting textarea input on output
| From: | Charles Kline | Date: | Tue, 25 Mar 2003 22:38:30 +0000 |
| Subject: | Re: formatting textarea input on output | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141032@lists.php.net to get a copy of this message | ||
I hang my head in shame... yes. As a matter of fact, I did on my second skim through my PHP ref. manual... thanks for the pointer just the same.
- charles
On Tuesday, March 25, 2003, at 05:38 PM, CPT John W. Holmes wrote:
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... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php