在表单里些一隐藏域<input type="hide" name="update" value="ture">
asp代码如下:
<%
if session("update")=true then
rs.update
end if
if resquest("update")=ture then session("update")=ture
%>
<%
set conn=server.createobject("ADODB.CONNECTION")
connstr="provider=microsoft.jet.oledb.4.0;data source="&server.mappath("info.mdb")
conn.open connstr
set rst=server.createobject("adodb.recordset")
str="select * from stuinfo where xszh="&request.form("xszh")&""
rst.open str,conn,1,3%>
<%if not rst.eof then