Re: php question

by "Paul Roberts" <hwg(at)roberts200025.freeserve.co.uk>

 Date:  Sun, 26 Jan 2003 20:21:17 -0000
 To:  "Mike Taylor" <lonewolf(at)one.net>
 Cc:  "HWG Techniques" <hwg-techniques(at)hwg.org>
 References:  earthlink oemcomputer
  todo: View Thread, Original
if you want the line breaks to show in a browser you need

print nl2br($mail_body);

double quotes expand variables only.

Best Wishes

Paul Roberts
mail(at)paul-roberts.com
++++++++++++++++++++++++
----- Original Message -----=20
From: "Mike Taylor" <lonewolf(at)one.net>
To: "HWG Techniques" <hwg-techniques(at)mail.hwg.org>
Sent: Sunday, January 26, 2003 7:58 PM
Subject: Re: php question


Are you trying to display it using single quotes?  If you are, it will
render it exactly as you see it, without doing the carriage return/page
break.

You should be doing this:

print "$mail_body";

Mike

----- Original Message -----
From: "terry goode" <tgoode(at)earthlink.net>
To: "HWG Techniques" <hwg-techniques(at)mail.hwg.org>
Sent: Sunday, January 26, 2003 11:47 AM
Subject: php question


> I've tried most of the php sites to get an answer of why the the
> following wont work.
> $mail_body =3D "testing php mail.\r\n";
> $mail_body =3D "more test of  php mail.\r\n";
>
> the new line "\n"  and the "\r\n" just don't work, suggestions ?
> --
> Terry G
> Home Page
> http://home.earthlink.net/~tgoode
> Hell of a good music CD(bike riding buddy)
> http://www.fallingrockmusic.com
>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA