我第一个页面是这样做的:
<form name="form1" action="shuzi.asp">
<p>
<input name="yc" type="hidden" id="yc" value="<%=shuzi%>">
<input type="submit" name="Submit" value="提交">
</table>
</form>
第二个页面这样写的:
<%
Dim addshuzi
Set addshuzi = Server.CreateObject("ADODB.Command"
addshuzi.ActiveConnection = MM_conn_STRING
addshuzi.CommandText = "INSERT INTO rs_newcode (maxer) valueS ('" + Replace(Request.Form("yc"
, "'", "''"
+ "') "
addshuzi.CommandType = 1
addshuzi.CommandTimeout = 0
addshuzi.Prepared = true
addshuzi.Execute()
%>
为什么我这样做不能把隐藏域里面的值插入到数据库里面去呢??