Re: Keep cariage returns
| From: | 1LT John W. Holmes | Date: | Mon, 24 Feb 2003 21:38:14 +0000 |
| Subject: | Re: Keep cariage returns | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136983@lists.php.net to get a copy of this message | ||
> Is it possible to maintain the carriage returns in a
> database insert. When I input data from a textfield
> with returns into the database, it is lost on a
> subsequent select and print.
They're still there, they don't disappear for no reason. HTML does not
understand newlines, though, only <br> elements. Look into the nl2br()
function.
---John Holmes...