获å–错误
Context validation error for tag cfinput.
The tag must be nested inside a cfform tag.
但我确实在cfinputå‘¨å›´æœ‰è¡¨æ ¼æ ‡ç¾ã€‚ å¯èƒ½å¯¼è‡´é”™è¯¯çš„åŽŸå› æ˜¯ä»€ä¹ˆï¼Ÿ
æ—注:在用作选择之å‰ï¼Œæˆ‘想把它改æˆå•é€‰æŒ‰é’®ã€‚
<form method="post" action="cse_allusers_addcomment.cfm" name="add_comment">
<cfoutput>
<input type="hidden" name="txtSubmitter" value="#GetCurrentUser.emp_id#">
..more code...
</cfoutput>
<table>
<thead>
......
</thead>
<tbody>
<cfoutput>
<cfloop index="i" from="1" to="5">
<cfset question = GetEmployeeCSEDepts["csedept_question" & i][GetEmployeeCSEDepts.CurrentRow]>
<cfif question neq "">
<tr>
<td valign="top">
<cfinput type="radio" name="ratingradio" value="5">Exceptional<br>
<cfinput type="radio" name="ratingradio" value="4">Exceeds Standards<br>
<cfinput type="radio" name="ratingradio" value="3">Successful<br>
<cfinput type="radio" name="ratingradio" value="2">Needs Improvement<br>
<cfinput type="radio" name="ratingradio" value="1">Unsatisfactory<br>
<cfinput type="radio" name="ratingradio" value="0">N/A<br>
</td>
<td valign="top">#question#</td>
</tr>
</cfif>
</cfloop>
</cfoutput>
</tbody>
</table>
<cfoutput>
<p>
<br>
<textarea style="width:99%;" rows="3" name="txtPosComment"></textarea></p>
</cfoutput>
<p><input type="submit" name="Submit" value="Submit"></p>
</form>
ç”案 0 :(得分:2)
您将其嵌套在<form>
代ç ä¸ï¼Œä½†<cfinput>
期望/需è¦åµŒå¥—在<cfform>
代ç ä¸ã€‚
é¡ºä¾¿é—®ä¸€ä¸‹ï¼Œä¸ºä»€ä¹ˆä½ è¿˜è¦ä½¿ç”¨<cfinput>
æ ‡ç¾ï¼Ÿæ‚¨ä¸éœ€è¦åœ¨ç»™å‡ºçš„示例ä¸ã€‚åªéœ€ä½¿ç”¨æ™®é€šçš„HTML <form>
和<input>
代ç 。