[PHP-DB] Data input

2001-02-21 Thread Matthew Cothier

I have set up a database so that users can submit news to my website. The 
only problem is they input their news article into the database through a 
form but it comes out as a continuous string of text.

(a) shows what it looks like now, and (b) shows how its supposed to look. 
How can they input the data into the database as they typ eit in without 
them having to add html .br. tags?

(a) this is line one this is line two this is line three

(b) this is line one

this is line two

this is line three
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Data input

2001-02-21 Thread CC Zona

In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] ("Matthew Cothier") wrote:

 How can they input the data into the database as they typ eit in without 
 them having to add html .br. tags?

nl2br()

-- 
CC

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]