表单传值的问题!
第一个页面<!-- #include file="config/conn.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title> </title>
<style type="text/css">
<!--
.STYLE1 {color: #000000}
-->
</style>
</head>
<body>
<%
dim rst,sql
set rst=server.createobject("adodb.recordset")
sql="select * from [kucun],[fenlei] where k_upid=3 "
rst.open sql,conn,1,1
%>
<table width="97%" border="1" align="center"cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolorlight="#9CA6C6" bordercolordark="#CCE3FF">
<form action="2.asp" method="post" name="form1" onSubmit="return checkForm(this)">
<tr bgcolor="#CCE3FF">
<td width="20%" height="23" align="center" bgcolor="#CCE3FF">商品编号:</td>
<td bgcolor="#CCE3FF"><%=rst("k_bid")%>
<input type="hidden" name="k_bid"></td>
</tr>
<tr bgcolor="#CCE3FF">
<td width="20%" height="23" align="center" bgcolor="#CCE3FF">商品名称:</td>
<td bgcolor="#CCE3FF"><%=rst("k_name")%>
<input type="hidden" name="k_name"></td>
</tr>
<tr bgcolor="#CCE3FF">
<td height="23" align="center" bgcolor="#CCE3FF">商品价格:</td>
<td ><%=rst("k_price2")%>
<input type="hidden" name="k_price2"></td>
</tr>
<tr bgcolor="#CCE3FF">
<td height="23" align="center" bgcolor="#CCE3FF">销售数量:</td>
<td ><input name="num" type="text" ></td>
</tr>
<tr bgcolor="#CCE3FF">
<td height="23" align="center" bgcolor="#CCE3FF">实 收:</td>
<td><input name="shishou" type="text" >
<font color="#FF0000"> *</font></td>
</tr>
<tr bgcolor="#CCE3FF">
<td height="31" colspan="2"> <div align="center">
<input type="submit" name="Submit" value="确定" />
<input type="reset" name="Submit2" value="清除" />
</div></td>
</tr>
</form>
</table>
</body>
</html>
第二个页面的内容
<!-- #include file="config/conn.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title> </title>
<style type="text/css">
<!--
.STYLE1 {color: #000000}
-->
</style>
</head>
<body>
<table width="97%" border="1" align="center"cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolorlight="#9CA6C6" bordercolordark="#CCE3FF">
<tr bgcolor="#CCE3FF">
<td width="20%" height="23" align="center" bgcolor="#CCE3FF">商品编号:</td>
<td bgcolor="#CCE3FF"><%=request.Form("k_bid")%></td>
</tr>
<tr bgcolor="#CCE3FF">
<td width="20%" height="23" align="center" bgcolor="#CCE3FF">商品名称:</td>
<td bgcolor="#CCE3FF"><%=request.Form("k_name")%></td>
</tr>
<tr bgcolor="#CCE3FF">
<td height="23" align="center" bgcolor="#CCE3FF">商品价格:</td>
<td ><%=request.Form("k_price2")%></td>
</tr>
<tr bgcolor="#CCE3FF">
<td height="23" align="center" bgcolor="#CCE3FF">销售数量:</td>
<td ><%=request.Form("num")%></td>
</tr>
<tr bgcolor="#CCE3FF">
<td height="23" align="center" bgcolor="#CCE3FF">实 收:</td>
<td><%=request.Form("shishou")%></td>
</tr>
</table>
</body>
</html>
第一个表单中只有文本域的内容可以传到第二页面,别的内容都无法传过来!