传值问题
<%id=Request.Querystring("id")
set rs=server.createobject("adodb.recordset")
sql="select * from mb where id="&id
rs.open sql,conn1,1,3
%>
<form name="myform" method="post" action="admin_mbxgs.asp">
<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td bgcolor="#FFFFFF">模版类别</td>
<td bgcolor="#FFFFFF"><select name="mblb">
<option>企业模版</option>
<option>博客模版</option>
</select> </td>
</tr></table>
<input type="hidden" name="id" value="<%=Request.Querystring("id")%>">
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
</form>
//这张页面的传值是传到了的
但是admin_mbxgs.asp 这张程序页面的值没有传到
admin_mbxgs.asp页面程序代码
<%
if Request.Querystring("id")="" then
response.write "id值为空"
else
id=Request.Querystring("id")
set rs=server.CreateObject("adodb.recordset")
sqlstr="select * from mb where id="&id
rs.Open sqlstr,conn1,1,3
rs("mmane")=Request("mmane")
rs("lmane")=Request("lmane")
rs("mblb")=Request("mblb")
rs("pic")= Request("pic")
rs("dj")= Request("dj")
rs("tdate")=date()
rs.update
rs.close
set rs=nothing
response.write("<script language='javascript'>alert('模版已修改');window.location.href='admin_mb.asp'</script>")
end if
%>