有一复选框:
<form name="form1" ....>
<input type="checkbox" name="choice" id="choice" value="yes" <%if rs1("product_choice")=true then response.Write "checked" end if%>/>
button按钮:
<input type="button" name="ok" value="确定" onclick="javascript:location.href='product_choice.asp?id=<%=rs1("id")%>&choice=<%=request.form("choice")%>'">
....
</form>
请教:
为何choice=<%=request.form("choice")%>获取不到值???
以下是product_choice.asp代码:
<%dim rs,newid,choice
choice=request.querystring("choice")
newid=request.querystring("id")
set rs=....
rs.open "select * from product where id="&newid,conn,1,3
if choice="yes" then
rs("product_choice")=true
else
rs("product_choice")=false
end if
rs.update
rs.close
set rs=nothing%>
请高手不辞赐教!