Re: how to format the output of the text info that user uploaded?
| From: | Brent Baisley | Date: | Mon, 19 Aug 2002 15:08:11 +0000 |
| Subject: | Re: how to format the output of the text info that user uploaded? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-21231@lists.php.net to get a copy of this message | ||
It sounds like you want to use the nl2br() function. That will convert the new lines to HTML line breaks and give you the "paragraphs" that the user put in.
On Sunday, August 18, 2002, at 04:22 PM, bo wrote:
I have a field in a form which allows user to upload thier biographys.Once they upload a bunch of texts,the script I wrote automatically show it on a webpage, however, the contents are all scrambled toghther without line break and formatting.. How am I able to show the formatted outputs? I tried to use <pre> </pre>, but it didn't work well. Any suggestions? Thank you! Bo -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577