James Keeline wrote: > I apologize if someone beat me to it. The nl2br() function will do the job > you > suggest. > > http://www.php.net/nl2br
on early builds of php, it has a hard time with <br /> syntax tags (if you are using xhtml) here's two common user functions to use instead: // Convert newlines to <br /> function my_nl2br($t="") { return str_replace( "\n", "<br />", $t ); } // Convert <br /> to newlines function my_br2nl($t="") { $t = preg_replace( "#(?:\n|\r)?<br />(?:\n|\r)?#", "\n", $t ); $t = preg_replace( "#(?:\n|\r)?<br>(?:\n|\r)?#" , "\n", $t ); return $t; } ------------------------ Yahoo! Groups Sponsor --------------------~--> Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/HKFolB/TM --------------------------------------------------------------------~-> Community email addresses: Post message: php-list@yahoogroups.com Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/