[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";
> That works. Hmm. I wonder why the concatenation didn't?
Because '\n' is a string consisting of a backslash followed by the letter
n, while "\n" is a newline character. Gotta use double-quotes.
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]