Re: Data entered by a form
| From: | (Philip Hallstrom) | Date: | Fri, 11 Aug 2000 22:01:52 +0000 |
| Subject: | Re: Data entered by a form | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11427@lists.php.net to get a copy of this message | ||
See the nl2br() function...
basically once you've got it out of the db, do:
print( nl2br($textstring) );
-philip
In article <p04310104b5ba2679d3c3@[205.179.17.40]>,
Phillip S. Baker <phillip@wordsandimages.com> wrote:
>Greetings All,
>
>Okay I have a form.
>There is a textarea field that holds a large amount of copy.
>The results get plugged into MySQL.
>
>Is there a way when the copy is pulled out of the DB by PHP to format
>the data so that \n and \r values are converted to <BR> and <P> html
>tags so the copy is formatted correctly?
>
>Thanks
>--
>
>Phillip S. Baker
>
>phillip@wordsandimages.com
>Words & Images, Inc.
>1535 Seabright Avenue, Suite 100, Santa Cruz, CA 95062
>Direct Line (831) 420-2641 / Fax (831) 458-0808
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
>