Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Template WYSIWYG php && tags
March 22, 2007, 3:08 pm
rate this thread
I am trying to find an answer to that rpoblem of mine for a very long
time now... and still I had no luck.
I have my tinyMCE WYSIWYG and I want to let people create an e-mail
So i want the to type in the WYSIWYG :
Dear <?= $subscriber->name ?>,
You have a message from <?= $anotherSubscriber->name ?>
Total messages: <?= $message->countMessages($subscriber->name); ?>
Another version of the above is:
Dear <?= $NAME ?>,
You have a message from <?= $MESSAGE_FROM_NAME ?>
Total messages: <?= $TOTAL_MESSAGES ?>
Ignore the CAPITAL letters.
And the question is... what options do I have of creating that
template in my WYSIWYG store it in a DB and then be able to parse it.
I believe that the most common answer would be using regular
expression and replacing this variables with somthing else. But do you
know any application that works like that... is that a common way to
- Bruno Barberi Gnecco
March 23, 2007, 9:49 pm
- » An introduction by ways of explaining my intentions.
- — Previous thread in » PHP Scripting Forum