> I have a basic feedback form with:
>   your name
>   your e-mail address
>   E-Mail Subject
>   Message
> 
> The problem is the line breaks...
> 
> For example, they might type in the following (between the dashed
> lines) into the Message textarea:
> ------------------------------
>   Hi,
> 
>   Please send me some info.
> 
>   Thanks,
>   Gav
> ------------------------------
> 
> When I receive the mail, however, it looks like this:
> ------------------------------
>   Hi, Please send me some info. Thanks, Gav
> ------------------------------
> 
> This is fine for such a short message, but lengthy messages would be
> horrid to read if all the line breaks were taken out... Not to mention
> an unprofessional appearance...

You must be sending HTML mail??

Try the nl2br() function. HTML doesn't understand newlines, only <br>
elements. 

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to