Re: How to handle multiple lines in PHP?

From: Date: Tue, 16 Jan 2001 16:31:48 +0000
Subject: Re: How to handle multiple lines in PHP?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34842@lists.php.net to get a copy of this message
you could use nl2br command on the string that holds the data... check this for further info... http://www.php.net/nl2br Have fun, Rom ----- Original Message ----- From: david klein <davidklein101@hotmail.com> To: <php-general@lists.php.net> Sent: Tuesday, January 16, 2001 11:12 AM Subject: [PHP] How to handle multiple lines in PHP? I have a textarea in one php page to allow user to leave message. How ever, if the user input(three lines): 123 456 567 after I get it through some php scripts, and put it into database, later on, I try to display it, but it becomes(only one line): 123 456 789 Does anyone know how to handle this? One idea is to convert the <END OF LINE CHAR> to "<BR>" before putting it into the database, but how can we detect the <END OF LINE CHAR> in PHP? Or is there any other ways? Thank you very much in advance. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com -- 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

« previous php.general (#34842) next »