If you want the string to be parsed by CF, you could use the Evaluate function:
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7f4e.html e.g. when the text from db = "Hi #name#. How's it going?" variables.name = 'dom'; finalOutput = Evaluate( textFromDb ); // final output = "Hi dom. How's it going?" HTH On 1 April 2011 16:22, Scott Williams <myscottwilli...@yahoo.com> wrote: > > Hi all -- > > I have a script that draws some text from a database, and I would like to > embed > a person's name within the text. > > For example, the database field contains this text: > > Hi #name#. How's it going? > > I would like the #name# to be replaced with a previously defined variable > "name." > > Can ColdFusion do this? If so, how? > > Scott > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343465 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm