> /**
> * converts line break and spaces to page break
> *
> * @access public
> */
>
> function nlbr($string) {
> return preg_replace("/(\r\n|\n|\r)/", "<br>\n", $string);
> }ummm.... www.php.net/nl2br() ?? Start a new thread for your question, don't hijack someone else's thread. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

