I'm working on a template for use in my email system. And i'll send mails to my customers.
This will be my create-email.php file :
and will have a textarea, i need some variables for use on it;
Hello {firstname} {lastname},
Your email address {email} has been added in to our newsletter list.
You can unsubscribe with using this link : http://example.com/unsubscribe.php?memberid={memberid}&email={email}
This textarea will be POST'ed to send-email.php
and my problem is starting here. I want to replace the {firstname} {lastname} {email} {memberid} with my data's coming from my database.
How can i do this ?