Re: how to format the output of the text info that user uploaded?
| From: | Robert Parker | Date: | Mon, 19 Aug 2002 20:41:32 +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-21228@lists.php.net to get a copy of this message | ||
On Sunday 18 August 2002 04:22 pm, you 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.
I suspect that those tags are the problem, because you are
telling the browser that this output has been formatted already.
Try using <p> .. </p> and let the browser format the text.
That way any \n, extra spaces etc will just be ignored.
>
> Any suggestions?
>
> Thank you!
>
> Bo