处理驻留在数据库表中的ColdFusion变量

处理驻留在数据库表中的ColdFusion变量,coldfusion,coldfusion-10,Coldfusion,Coldfusion 10,我的一个表正在保存一个包含ColdFusion变量的HTML表单。在我的代码中,我正在查询这个表,需要在前端显示这个表单。但是在显示时,我得到的是ColdFusion变量名,而不是变量的值 保存在db表中的HTML表单: 方法cffunction包含以下代码,用于从db表查询此html表单并返回html表单。 但是,当我转储cfcontent变量form_content时,我得到的是HTML表单,而没有处理coldfusion变量ARGUMENTS.chkDetails.GL_ACCT_NBR、

我的一个表正在保存一个包含ColdFusion变量的HTML表单。在我的代码中,我正在查询这个表,需要在前端显示这个表单。但是在显示时,我得到的是ColdFusion变量名,而不是变量的值

保存在db表中的HTML表单: 方法cffunction包含以下代码,用于从db表查询此html表单并返回html表单。 但是,当我转储cfcontent变量form_content时,我得到的是HTML表单,而没有处理coldfusion变量ARGUMENTS.chkDetails.GL_ACCT_NBR、glNumbers.GL_ACCT_NBR

我错过什么了吗?有谁能帮我解决这个问题吗?

我敢肯定,如果你搜索这个网站或通过谷歌搜索一下,你可能已经在某个地方找到了这个问题的答案,因为它几乎每3-4个月就会出现一次

您不能输出CFML,而希望它能够执行

我在我的博客上总结了CFML请求/编译/响应过程:

一句话:CFML源代码需要在编译时而不是运行时从文件系统加载。因此,当您希望执行代码时,代码需要在文件系统中,而不是在数据库或变量中

不过,您可以将代码写入文件,然后将其包括在内。这在那篇博客文章中有详细说明。

可能重复的
<form action="" name="ci_entry_form" id="ci_entry_form" method="post">
<table width="100%" height="100%" border="0">
<tr>
<td align="right"><b style="color:red">*</b>&nbsp;<label class="pop_up_letter_font">G/L # &nbsp;&nbsp;&nbsp;&nbsp;:</label></td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;<input class="pop_up_textbox" type="text" name="gl_number_text" id="gl_number_text" maxlength="21" value="#ARGUMENTS.chkDetails.GL_ACCT_NBR#" required/>&nbsp;&nbsp;&nbsp;
<select class="pop_up_dd" name="gl_number_drop" id="gl_number_drop" onChange="enableDisableGL()">
<option value="">---Select---</option>
<option value="new">Enter a new G/L number</option>
<cfoutput query="glNumbers">
<option value="#glNumbers.GL_ACCT_NBR#">#glNumbers.GL_ACCT_NBR#</option>
</cfoutput>
</select>           
</td>        
</tr>
</table>
</form>
<cfquery name="qry_getTemplate" datasource="#APPLICATION.dsn#">
select FORM_TXT from HTML_FORMS where REQ_ID = 172
</cfquery>  

<cfsavecontent variable="form_content">
<cfoutput>#qry_getTemplate.FORM_TXT #</cfoutput>
</cfsavecontent>