回 帖 发 新 帖 刷新版面

主题:一个很重要的问题,也是大家关注的问题

<form method="post" action="" >
    <td width="9%"><div align="center">
      <input type="radio" name="myselecct" value="出货">出货</div></td>
    <td width="12%"><div align="center">
      <input type="radio" name="myselecct" value="完成订单">完成订单</div></td>
    <td width="7%"><div align="center"><a href="noconfirm.asp?bh=<%=rs("bh")%>">确认</a></div></td>
</form>

noconfirm.asp代码如下:
<!--#include file="conn.asp"-->
<%
plan=request("myselecct")
set rs=server.CreateObject("adodb.recordset")
sql="select * from products  where bh="&request("bh")&""
rs.open sql,conn,3,3
rs("plan")=plan
rs.update
rs.close
set rs=nothing
Response.Redirect "search.asp"
Response.End
%>
如何将单选按钮的值传递给noconfirm.asp页面,请各位大虾指点一下

回复列表 (共5个回复)

沙发

直接接收就好

板凳

你要进行提交表单操作才能把值提交过去,单单一个链接是不行的。

3 楼

以上二位的回答,都不能解决我的问题

4 楼

我把代码给你,你试试看吧。不过你还是要弄清提交是怎么回事,并不是说链接在form里就是提交操作了。

<form method="post" action="noconfirm.asp?bh=<%=rs("bh")%>" name="f1">
    <td width="9%"><div align="center">
      <input type="radio" name="myselecct" value="出货">出货</div></td>
    <td width="12%"><div align="center">
      <input type="radio" name="myselecct" value="完成订单">完成订单</div></td>
    <td width="7%"><div align="center"><a href="javascript:document.f1.submit()">确认</a></div></td>
</form>
 

5 楼

表单里的radio对像用selectedindex.value,

我来回复

您尚未登录,请登录后再回复。点此登录或注册