[PHP] html email showing br instead of line breaks

2009-09-24 Thread Adam Williams
I have users enter support tickets into a a textarea form and then it emails it to me, I'm trying to get the emails to display when they hit enter correctly, so i'm changing the \r\n to br, but in the email i'm getting, its displaying the br instead of a line break: here is the code:

Re: [PHP] html email showing br instead of line breaks

2009-09-24 Thread Jonathan Tapicer
\r\n should be between double quotes: \r\n On Thu, Sep 24, 2009 at 3:52 PM, Adam Williams awill...@mdah.state.ms.us wrote: I have users enter support tickets into a a textarea form and then it emails it to me, I'm trying to get the emails to display when they hit enter correctly, so i'm

Re: [PHP] html email showing br instead of line breaks

2009-09-24 Thread Adam Williams
Thanks, i'll try that. what is the difference in using '' and ? I thought they were interchangeable. Jonathan Tapicer wrote: \r\n should be between double quotes: \r\n -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] html email showing br instead of line breaks

2009-09-24 Thread Adam Williams
oh nevermind, i see double quotes translate the \r\n to its appropriate EOL character. Adam Williams wrote: Thanks, i'll try that. what is the difference in using '' and ? I thought they were interchangeable. Jonathan Tapicer wrote: \r\n should be between double quotes: \r\n --

Re: [PHP] html email showing br instead of line breaks

2009-09-24 Thread Jonathan Tapicer
Double quotes accept special characters and string interpolation, see the manual: http://php.net/manual/en/language.types.string.php On Thu, Sep 24, 2009 at 4:00 PM, Adam Williams awill...@mdah.state.ms.us wrote: Thanks, i'll try that.  what is the difference in using '' and ?  I thought they

Re: [PHP] html email showing br instead of line breaks

2009-09-24 Thread Fernando Castillo Aparicio
] html email showing br instead of line breaks I have users enter support tickets into a a textarea form and then it emails it to me, I'm trying to get the emails to display when they hit enter correctly, so i'm changing the \r\n to br, but in the email i'm getting, its displaying the br instead

Re: [PHP] html email showing br instead of line breaks

2009-09-24 Thread Ben Dunlap
\r\n should be between double quotes: \r\n I think you'll still see the literal brs in your final email, though because htmlspecialchars() is converting the angle-brackets in the tag to their respective HTML entities (lt; for and gt; for ). A bit of a thorny problem because you probably do