传值问题

来源:百度知道 编辑:UC知道 时间:2024/06/14 13:25:17
我想做做选择,然后系统自动评分的系统,所以RADIO里的NAME都试从数据库中读出的。这样我就能在points.asp中得到对应NAME的值

<form method="post" action="points.asp" name="choice">
<table width="771" height="262" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#B8FCF3">
<%dim i
i=1
sql="select * from choice where ID="&cint(id)
rs.open sql,conn,1,1
do while not(rs.eof)
%>
<tr>
<td bgcolor="#FFFFFF">
<%
response.Write i&"."
i=i+1
response.Write rs("Content")
namechoice=rs("cid")
%>
<br />
<input name="<%=namechoice%>" type="radio" value="<%=rs("A")%>"><%=rs("A")%>
<input name="<%=namech

估计是没有访问到数据库吧!

sql="select * from choice where ID="&id&""
改成
sql="select * from choice where ID=" & id

如果还是输不出,我也不知道其原因,我已经尽力看程序了!

希望你快点解决哦~~~~

answer=request.Form("cid")--------------一直输不出啊