怎样用RESPONSE.WRITE输出文本框值?

ybcheng 2002-05-08 04:44:39
例如:Response.Write "+radio.clbz.value"
可是我这样写的不管用阿
...全文
75 点赞 收藏 3
写回复
3 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
aocool 2002-05-08
乱,看不懂!
把你的代码先精简一下吧。
有事找我。QQ:20552480
回复
ybcheng 2002-05-08
不管用吗?
这是我的源程序:

<%

set conn=server.CreateObject ("adodb.connection")
set rs=server.CreateObject ("adodb.recordset")
usercode=Request.Cookies ("usercode")
gwdm=Request.Cookies ("gwdm")
dm=Request.Cookies ("dm")
conn.Open "LCWZDB","cpu","3397261"
if trim(dm)<>"0001" then
str="select a.dzywmc,a.dzywbh from "+dm+"wz@dzywlx a, "+dm+"wz@ywlzgw b where a.dzywbh=b.dzywbh and b.gwbh='"+gwdm+"'"
else
str="select a.dzywmc,a.dzywbh from wz@dzywlx a , wz@ywlzgw b where a.dzywbh=b.dzywbh and b.gwbh='"+gwdm+"'"
end if
rs.Open str,conn,1,3
Response.Write ("<SCRIPT LANGUAGE=javascript>")
Response.Write("function radio2_onclick(){")
Response.Write("radio.radio1.checked=false;radio.clbz.value=0;")
Response.Write(" }")
Response.Write("function radio1_onclick(){")
Response.Write("radio.radio2.checked=false;radio.clbz.value=1;}")
Response.Write ("function direct(){")
Response.Write ("location.href='DjList.asp?dzywbh=")
Response.Write rs.Fields ("dzywbh")
Response.Write ("&clbz='")
Response.Write Request("radio.clbz.value")
Response.Write("}</SCRIPT>")

Response.Write (Request.Cookies ("username")+"你现在的位置:<p>--------<br>     业务处理中心</br></p>")
Response.Write ("<form name=radio action='YwLxList.asp'><INPUT type=radio id=radio1 name=unfinish checked=true onclick=javascript:radio1_onclick()>未处理")
Response.Write ("<INPUT type=radio id=radio2 name=finish onclick=javascript:radio2_onclick()>已处理")
Response.Write ("<input type=hidden name=clbz>")
do while not rs.EOF
Response.Write ("<p><a href=javascript:direct() target='main'>")
Response.Write rs.Fields ("dzywmc")+("</p></a>")
rs.MoveNext
loop
Response.Write ("</form>")
Response.Write "<head>"
Response.Write "<base target='main'>"
Response.Write "</head>"
%>
回复
ChinaOk 2002-05-08
Response.Write Request("RadioName")
回复
相关推荐
发帖
ASP
创建于2007-09-28

2.8w+

社区成员

ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
申请成为版主
帖子事件
创建了帖子
2002-05-08 04:44
社区公告
暂无公告