我試圖查看我的CF頁面時,錯誤消息的根本原因,但該頁仍然正常工作。我現在必須道歉。這是我第三天使用CF.我真的很感謝所有幫助ColdFusion:變量CHRIS3未定義。但頁面仍然有效,除了最初的錯誤消息
<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)
非常感謝!該網頁是成功的。 p.s.我剛剛獲得了這個獎項。雙謝謝你! – ElSwifto 2012-04-10 15:49:04
@ElSwifto很高興爲您提供幫助 – 2012-04-10 19:24:57