Re: [PHP] new lines in text fields
use the 'nl2br' fuction‹ Inserts HTML line breaks before all newlines in a string From: Mat Marlow [EMAIL PROTECTED] Date: Fri, 6 Jul 2001 16:06:58 +0100 To: [EMAIL PROTECTED] Subject: [PHP] new lines in text fields Hi all, I am in desperate need for a solution to HTML text fields not storing new lines. I'm storing news articles in a database but all the text just ends up in a big block because it ignores line breaks. Is thre a way around this without having to upload text files? Thanks, Mat -- PHP General 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] -- PHP General 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] new lines in text fields
On Sat, 7 Jul 2001 00:36, Mat Marlow wrote: Hi all, I am in desperate need for a solution to HTML text fields not storing new lines. I'm storing news articles in a database but all the text just ends up in a big block because it ignores line breaks. Is thre a way around this without having to upload text files? Thanks, Mat You probably want the WRAP=virtual parameter in your TEXTAREA. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Is it OK to yell 'MOVIE' in a crowded firehouse? -- PHP General 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]
[PHP] new lines in text fields
Hi all, I am in desperate need for a solution to HTML text fields not storing new lines. I'm storing news articles in a database but all the text just ends up in a big block because it ignores line breaks. Is thre a way around this without having to upload text files? Thanks, Mat -- PHP General 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] new lines in text fields
Have you tried putting the newline character (\n) into your html? That works great for me. My only problem is that the output from an XSL transformation has all the line breaks stripped out... - Original Message - From: Mat Marlow [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 06, 2001 8:06 AM Subject: [PHP] new lines in text fields Hi all, I am in desperate need for a solution to HTML text fields not storing new lines. I'm storing news articles in a database but all the text just ends up in a big block because it ignores line breaks. Is thre a way around this without having to upload text files? Thanks, Mat -- PHP General 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] -- PHP General 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] new lines in text fields
Hi, I don't know what is exactly what you want to do, but I have a page with a textarea tag, and a mySQL database with a TEXT field, that way I can use newline breaks. Bye. On Fri, Jul 06, 2001 at 04:06:58PM +0100, Mat Marlow wrote: Hi all, I am in desperate need for a solution to HTML text fields not storing new lines. I'm storing news articles in a database but all the text just ends up in a big block because it ignores line breaks. Is thre a way around this without having to upload text files? Thanks, Mat -- PHP General 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] -- PHP General 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]