[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

Re: [PHP] email templates and str_replace

2001-06-20 Thread Zak Greant
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 saved the Placeholders are filled in using str_replace. that is what I

Re: [PHP] email templates and str_replace

2001-06-20 Thread Chris \TunkeyMicket\ Watford
I might just include the source some time. Hope this helps, Chris "TunkeyMicket" Watford TunkeyMicket Productions www.tunkeymicket.com - Original Message - From: "Richard Kurth" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Se

RE: [PHP] email templates and str_replace

2001-06-20 Thread Rich Cavanaugh
##',$domainname,$mail_content); ? 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 templates

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: ?php $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 the