Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2003022

Re: [PHP] Keep cariage returns From: 1LT John W. Holmes (holmes072000 <email protected>)
Date: 02/24/03

> 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...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php