Re: HELP: Carriage returns don't display in HTML
| From: | Paul Nicholson | Date: | Sat, 28 Sep 2002 01:56:27 +0000 |
| Subject: | Re: HELP: Carriage returns don't display in HTML | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117910@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hey,
Try nl2br(http://www.php.net/nl2br).
~Pauly
On Friday 27 September 2002 08:19 pm, Shane wrote:
> Greetings folks.
>
> I need my carriage returns to show up in my HTML output from my text form
> field.
>
> There is a JavaScript function that will convert carriage return to <BR>
> tags, but is there a PHP function that will add <BR> or <P> tags to a text
> form field in place of the carriage returns a user might add.
>
> Thanks in advance!
> -NorthBayShane
- --
~Paul Nicholson
Design Specialist @ WebPower Design
"The web....the way you want it!"
paul@webpowerdesign.net
"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9lQxPDyXNIUN3+UQRAplZAJsHW7SeDvHzESn+mqbXZhmobMw8IwCfcWry
IzMWaMTsegPaXrBmvjl9vVQ=
=sL/V
-----END PGP SIGNATURE-----