I have a template file contained in a variable called $TemplateFile
It looks like this:
I am looking for an elegant way to avoid hard coding the entire thing, but what needs to happen is this:
anything in ([__NAME__]) need to replaced with the $_REQUEST('__NAME__').
would be this:
and then anything like this: <!--__NAME__-->
would get replaced with this:
name=str_ireplace("<!--name-->", $name, $TemplateFile);
So my hope is that I can just pass $TemplateFile off, and have the whole thing automatically parsed and returned to me with all the variable filled in, as opposed to having to write the whole thing out by hand and trying to account for each possible variable.
Does that make sense?