>>> \r\n should be between double quotes: "\r\n"
I think you'll still see the literal ""s in your final email,
though because htmlspecialchars() is converting the angle-brackets in
the tag to their respective HTML entities ("<" for "<" and ">"
for ">").
A bit of a thorny problem because you proba
Have you tried http://es.php.net/manual/en/function.nl2br.php ?
I think it's easier and fits your needs.
De: Adam Williams
Para: PHP General list
Enviado: jueves, 24 de septiembre, 2009 20:52:13
Asunto: [PHP] html email showing instead of line brea
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
wrote:
> Thanks, i'll try that. what is the difference in using '' and ""? I
> thought they were interchangeable.
>
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"
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
\r\n should be between double quotes: "\r\n"
On Thu, Sep 24, 2009 at 3:52 PM, Adam Williams
wrote:
> I have users enter support tickets into a a 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 , but in the e
I have users enter support tickets into a a 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 , but in the email i'm
getting, its displaying the instead of a line break: here is the code:
$message = "new supp
7 matches
Mail list logo