在查看我的 CF 页面时,我试图找到错误消息的根本原因,但是该页面仍然可以正常运行。我现在必须道歉。这是我使用 CF 的第三天。我真的很感激任何帮助
<cfsetting showDebugOutput="Yes">
<form id="form1" name="form1" method="post" action="">
<label for="Chris3">Please Select.<br />
</label>
<select name="Chris3" id="Chris3">
<option value="COOKWARE/CUTLERY">COOKWARE/CUTLERY</option>
<option value="BAKEWARE/ ELECTRICS">BAKEWARE/ ELECTRICS</option>
<option selected="selected">Please Select one</option>
</select>
<input type="submit" name="SUBMIT" id="SUBMIT" value="Submit" />
</form>
<p>
<cfset Chris3 ="Form.Chris3">
<cffile action="append"
file="C:\Inetpub\wwwroot\PURGE\WS\DEPTM.txt"
output="#Chris3#">
错误信息:
以下信息仅供网站开发人员用于调试目的。
处理请求
变量 CHRIS3 未定义时发生错误。
The error occurred in C:\Inetpub\wwwroot\PURGE\WS\PURGE.cfm: line 29
27 : <cffile action="append"
28 : file="C:\Inetpub\wwwroot\PURGE\WS\DEPTM.txt"
29 : output="#Chris3#">
30 : </p>
31 : <p>Below are Departments that have finished reviewing the purge</p>
--------------------------------------------------------------------------------
Resources:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Remote Address 192.168.97.38
Referrer
Date/Time 06-Apr-12 03:30 PM
Stack Trace (click to expand)