a高手请进在线等待,网页间参数传递 急急急~~!!!
qfacy 2004-04-07 12:28:32 最终目标
书名 编号 修改
111 book-10-20-210 submit
222 book-10-20-211 submit
.... ............. ......
点击submit的时候传递相对编号的值,而我写的程序在传递参数getmethod_input 时候出现
book-10-20-210 book-10-20-21...........说明我的参数传递错误,不知道那里出现了错误,怎么解决,没有有更简便的方法实现这个!小第在此先谢谢大家了
查询数目文件如下
<!-- #include file="../db/database_connection.asp" -->
<%
'Check the Session("strID")
Sub OrderList()
'Exact the order list
Dim rsOrder 'as New ADODB.Recordset
Set rsOrder=Server.CreateObject("ADODB.Recordset")
Dim strSql 'as String
strSql="select * from tbl_book "
rsOrder.Open strSql,m_con,3,3
if rsOrder.RecordCount>0 then
%>
<table width="1015" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="973" height="54"></td>
<td width="42"></td>
</tr>
<tr>
<td valign="top" height="82">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="22" width="388" valign="top">
<div align="left">书名</div>
</td>
<td valign="top" width="257">
<div align="left">编号</div>
</td>
<td width="328" valign="top">
<p align="left">修改</p>
</td>
</tr>
<%getmethod_input=1%>
<%
while not rsOrder.BOF and not rsOrder.EOF
%><Form Action="updatebook.asp" Method="post">
<tr>
<td height="19">
<td rowspan="2" valign="top">
<input type="text" name=getmethod_input size="50" value="<% =rsOrder("strID") %>">
</td>
<td rowspan="2" valign="top">
<% Response.Write "<input type=submit name=cmdUpdateOrder value=""修改"">"
%>
</td>
<tr>
<td height="30" valign="top"> <%=rsorder("strChineseName")%> </td>
</tr>
</from>
<%
rsOrder.MoveNext
wend
%>
</table>
</td>
</tr>
</table>
<%
end if
rsOrder.Close
Set rsOrder=Nothing
end sub
%>
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<% OrderList %>
</body>
</html>
下一页
<%
dim pidef
pidef=Request("getmethod_input")
response.write pidef
%>
html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
略......
......
</body>
</html>