I have a field in my database called "introduction" that contains the following:
"My name is #myname#"
When I output #introduction# to the webpage, I would like #myname# to show the field value - i.e. "My name is Brett". How do I let CF know to display the variable? Right now, I'm gettting "My name is #myname#"
This is a troublesom construct that will often devole into more trouble then it is worth, but almost everybody tries it at least once.
Anyway you can use the evaluate() function to do what you wish.
I found this technique in another thread here and it did the job:
<cfset introduction = Replace(introduction, 'myname', myname, 'all')>
I've already pulled all the #'s out of my data so I can't easily try evaluate now but I appreciate the responses.