Are you sure you want to convert \n into <br> for an email?  At any rate,
a function exists for this conversion :

    http://www.php.net/manual/en/function.nl2br.php

Regards,


Philip Olson
http://www.cornado.com/

.sig
                                be outside the box.


On Wed, 14 Feb 2001, Dallas Kropka wrote:

>       I have a few text input boxes that I am using to allow the client to
> compose emails for a mailing list... does anyone have a little snippet that
> will take the "\n's" and turn them into <BR>'s? I would attempt to write one
> myself.... but Im not the best at ereg or replace code...
> 
> 
> Much Thanks in Advance.
> 
> Dallas K.
> 
> 
> -- 
> 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]

Reply via email to