你的提交的到加外一个面时,先把这个id值读出来把原来值存到session中
set rs1=server.CreateObject("adodb.recordset")
sql1="select * from orderform where orderid='"&request("orderid")&"'"
rs1.open sql1,conn,1,1
session("BZ")=rs1("BZ")
.....
再更新
set rs1=server.CreateObject("adodb.recordset")
sql1="select * from orderform where orderid='"&request("orderid")&"'"
rs1.open sql1,conn,1,3
rs1("BZ")=request("bz")
.....
<% if session("acl")<>"2" and session("acl")<>"1"then
session("prescript")=request.servervariables("script_name")
response.Redirect("../login/login.asp")
end if%>
<!--#include file=../Inc/conn.asp-->
<%
set rs1=server.CreateObject("adodb.recordset")
sql1="select * from orderform where orderid='"&request("orderid")&"'"
rs1.open sql1,conn,1,1
session("BZ")=request("BZ")
if request("post")<>"" then
call write1
end if
function write1
a=request.QueryString("orderid")
set rs=server.createobject("adodb.recordset")
sql="Select * from orderform where orderid='"&a&"'"
rs.open sql,conn,1,3
'添加订单信息
rs("shh")=false
rs("shwg")=false
rs("ggzt")=false
rs("check")=false
rs("orderid")=request("orderid")
rs("BZ")=request("BZ")
rs("ggxh")=request("ggxh")
rs("ggr")=request("ggr")
rs("ggrq")=request("ggrq")
rs("ggnr")=request("ggnr")
rs("ggjs")=""
rs("ggzt")=true
rs.update
rs.close
response.Write("<script language=javascript>alert('修改成功');location='ordernopass.asp'</script>")
end function
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>订单修改</title>
<style type="text/css">
<!--
.style1 {
font-size: 16px;
font-weight: bold;
color: #FFFFFF;
}
body,td,th {
font-size: 12px;
}
-->
</style>
<link href="biaodan.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {color: #000000}
-->
</style>
</head>