Perfect
Thankyou
Henry
"Erik Price" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> On Tuesday, July 2, 2002, at 01:52 PM, Henry wrote:
>
> > Imagine I have a piece of text
> >
> > "Dear [firstname]
> >
> > Thankyou for purchasing [product] on [date].
> >
On Tuesday, July 2, 2002, at 01:52 PM, Henry wrote:
> Imagine I have a piece of text
>
> "Dear [firstname]
>
> Thankyou for purchasing [product] on [date].
>
> We're sure you'll be very [expectation].
>
> Ta Very much."
>
> Whats the easiest way to replace all the things in square brackets with
Body = "";
if (empty($firstname))
$MailBody .= "Dear Customer";
else
$MailBody .= "Dear $firstname";
Note the use of .= to append to the string.
-Original Message-
From: Henry [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 10:53 AM
To: [EMAIL
Imagine I have a piece of text
"Dear [firstname]
Thankyou for purchasing [product] on [date].
We're sure you'll be very [expectation].
Ta Very much."
Whats the easiest way to replace all the things in square brackets with
variables of the same name.
i.e. $firstname, $product, $date, $expecta
4 matches
Mail list logo