[PHP] concatenating strings

2004-05-22 Thread Bill Freeburg
how do I add newline commands in the middle of a text string? I'm sending an email with the function mail($sendto,$subject,$message,$headers) The message is $message = My name is . $myname . My favorite color is . $color; How do I write it so the email message text is on two lines, My name

Re: [PHP] concatenating strings

2004-05-22 Thread Richard Davey
Hello Bill, Saturday, May 22, 2004, 11:43:17 AM, you wrote: BF how do I add newline commands in the middle of a text string? BF How do I write it so the email message text is on two lines, BF My name is BILL BF My favorite color is RED $message = My name is . $myname . \nMy favorite color is

Re: [PHP] concatenating strings

2004-05-22 Thread Matt
From: Richard Davey [EMAIL PROTECTED] Saturday, May 22, 2004 6:46 AM Subject: Re: [PHP] concatenating strings BF how do I add newline commands in the middle of a text string? $message = My name is . $myname . \nMy favorite color is . $color; \n = new line Also \n only works in double

[PHP] concatenating strings and \n's for mail...

2001-02-14 Thread Larry Rosenman
Greetings, I was trying to build up a multi-line body to use with the mail command, using code similar to: $mailbody = $mailbody . '\n' . $HTTP_POST_VARS["somefield"]; when I sent the mail, the \n showed up, not as a new line, but a literal \n. How do I fix this? This is with

Re: [PHP] concatenating strings and \n's for mail...

2001-02-14 Thread Christian Cresante
You need to use "\n" for interpolation. --- Larry Rosenman [EMAIL PROTECTED] wrote: Greetings, I was trying to build up a multi-line body to use with the mail command, using code similar to: $mailbody = $mailbody . '\n' . $HTTP_POST_VARS["somefield"]; when I sent the mail,

Re: [PHP] concatenating strings and \n's for mail...

2001-02-14 Thread Larry Rosenman
* Christian Cresante [EMAIL PROTECTED] [010214 13:27]: You need to use "\n" for interpolation. Tried that too... Didn't work for me... --- Larry Rosenman [EMAIL PROTECTED] wrote: Greetings, I was trying to build up a multi-line body to use with the mail command, using code

Re: [PHP] concatenating strings and \n's for mail...

2001-02-14 Thread Larry Rosenman
* Lewis Bergman [EMAIL PROTECTED] [010214 13:50]: On Wed, 14 Feb 2001, you wrote: Greetings, I was trying to build up a multi-line body to use with the mail command, using code similar to: $mailbody = $mailbody . '\n' . $HTTP_POST_VARS["somefield"]; when I sent the mail,

Re: [PHP] concatenating strings and \n's for mail...

2001-02-14 Thread CC Zona
[restored to bottom-posting, for clarity] I was trying to build up a multi-line body to use with the mail command, using code similar to: $mailbody = $mailbody . '\n' . $HTTP_POST_VARS["somefield"]; snip I think you can do it like this: $mailbody="$varname\n$varname2";

Re: [PHP] concatenating strings and \n's for mail...

2001-02-14 Thread Larry Rosenman
* CC Zona [EMAIL PROTECTED] [010214 21:21]: [restored to bottom-posting, for clarity] I was trying to build up a multi-line body to use with the mail command, using code similar to: $mailbody = $mailbody . '\n' . $HTTP_POST_VARS["somefield"]; snip I think you can