RE: [PHP] email templates and str_replace

2001-06-20 Thread Brian S. Dunworth
> Richard, > The problem is with the str_replace()s. Consider the following: > > $myvar = 'this is a var.'; > $mytext = str_replace('is', 'is not', $myvar); > ?> > > At this point $myvar still equals 'this is a var.' but $mytext is 'this is > not a var.' $myvar hasn't been modfified by

RE: [PHP] email templates and str_replace

2001-06-20 Thread Rich Cavanaugh
t have a cumlative effect. Something like the above would have the effect you're looking for. -- Rich Cavanaugh CTO, EnSpot.com -Original Message- From: Richard Kurth [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 4:32 AM To: [EMAIL PROTECTED] Subject: [PHP] email temp

Re: [PHP] email templates and str_replace

2001-06-20 Thread Chris \"TunkeyMicket\" Watford
string, or we can leave //it be to do further things to it. The example from above is //similar to the method I use in my TemplateEngine I wrote a //little while back, I might just include the source some time.   Hope this helps,   Chris "TunkeyMicket" Watford -----

Re: [PHP] email templates and str_replace

2001-06-20 Thread Zak Greant
t;[EMAIL PROTECTED]> Sent: Wednesday, June 20, 2001 2:32 AM Subject: [PHP] email templates and str_replace > I am trying to set up a template for an email program below you will > see the test program the $mail_template is pulled from a database > that is pre saved when it is s

[PHP] email templates and str_replace

2001-06-20 Thread Richard Kurth
I am trying to set up a template for an email program below you will see the test program the $mail_template is pulled from a database that is pre saved when it is saved the Placeholders are filled in using str_replace. that is what I want it to do. But it does not work. What am I missin