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:
\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
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
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
--
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
] 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
\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
7 matches
Mail list logo