Check out Evaluate(). If you trust the content, it'll work nicely.

Adrian

-----Original Message-----
From: Derek Hedstrom [mailto:[EMAIL PROTECTED]
Sent: 24 September 2008 21:32
To: CF-Newbie
Subject: Outputting a variable in a variable


I have a page in which the content is to contain a CF variable:
Some page text: #foo#. Some more page text.

I am storing the contents of this page in a database. I query the  
database and set the results in #bar#:
<CFQUERY NAME="bar" DATASOURCE="#Application.Datasource#">
        SELECT
                content
        FROM
                view
        WHERE
                ID = <cfqueryparam value="#Attributes.RecordID#"  
cfsqltype="cf_sql_integer" maxLength="2">
</CFQUERY>

I can query my database and output #bar# as the text of the page, but  
I want the variable #foo# to also be parsed.

How can I get #foo# to be parsed on the page?

TIA,
derekhed

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:4010
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to