0
我幾乎從不再使用ColdFusion。也就是說,我有一個網站剛搬到另一臺服務器上,cf已經更新爲最穩定的版本。當我編程時,我認爲是8。無論如何,當我的表單被提交時,下面的代碼會產生一個「錯誤的請求」錯誤(就是它在瀏覽器窗口中所說的)。我無法訪問cf管理員 - 基本上只有FTP。任何想法爲什麼下面的代碼會產生錯誤的請求錯誤?ColdFusion:錯誤的請求錯誤
<cfparam name="form.AutoArtID" default="1">
<cfparam name="form.FWPriorityID" default="1">
<cfparam name="form.totalFields" default="0">
<CFLOOP FROM="1" TO="#form.totalFields#" INDEX="Counter">
<cfset variables.FWPriorityID=F ORM[ "FWPriorityID_"& counter]>
<cfset variables.AutoArtID=F ORM[ "AutoArtID_"& counter]>
<CFQUERY NAME="Updateexbuildernew" DATASOURCE="Ikonltd">
UPDATE artworknew SET FWPriorityID =
<cfqueryparam value="#variables.FWPriorityID#" cfsqltype="cf_sql_integer" null="#not IsNumeric(variables.FWPriorityID)#">
WHERE AutoArtID=
<cfqueryparam value="#variables.AutoArtID#" cfsqltype="cf_sql_integer">
</CFQUERY>
</CFLOOP>
<html>
<head>
<title>IKONLTD DATABASE ADMIN TOOL </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../css/admin.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/javascript" src="http://ikonltd.com/admin/js/drop_down_menu.js"></script>
<script language="JavaScript" src="mm_menu.js"></script>
<script language="JavaScript" type="text/javascript" src="http://ikonltd.com/admin/js/drop_down_menu.js"></script>
<script language="JavaScript" src="mm_menu.js"></script>
</head>
<body>
<script language="JavaScript1.2">
mmLoadMenus();
</script>
<cfinclude template="../includes/topnav.cfm">
<p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" valign="top">
<h3 align="center">update artist artwork priority</h3>
</td>
</tr>
<tr>
<td width="32%" valign="top"> </td>
<td width="68%" valign="top"> </td>
</tr>
<tr>
<td colspan="2" valign="top">
<p>PriorityIDs for <strong>Featured Works</strong> have been updated. <br>
<br>
<a href="priority1.cfm">Click here to further edit Featured Works Priority IDs.</a></p>
<hr>
</td>
</tr>
</table>
</body>
</html>
哪個版本的ColdFusion?你有多少個參數? –
我不確定。服務器管理員進行了更改。我認爲舊服務器運行的是cf 8,新服務器正在運行cf的最新穩定版本。我沒有訪問cf管理員,所以這是我所有的信息。 – phillystyle123