accsident_ok.asp

来自「20041230162250801409: 浙江省丽水市公铁联运有限公司OA系」· ASP 代码 · 共 75 行

ASP
75
字号
<%@ language="vbscript"%>
<%response.Expires = 0%>

<!--#include file="conn.asp"-->
<%
'set rs=server.createobject("adodb.recordset")
'sqltext="select * from driver1  where id=" & request.Querystring("id")
'rs.open sqltext,conn,3,3
id=request.querystring("id")
'BiaoHao=Request("BiaoHao")
set rs=server.createobject("adodb.recordset")
sqltext="select * from accsident1 where id="& id
rs.open sqltext,conn,3,3

'更新记录到数据库
rs("编号")=aa1
	 if request("aa")="" then 
	 rs("姓名")=null
	 else 
	 rs("姓名")=request("aa")
	 end if 
	 if request("bb")="请选择性别" then
	   rs("性别")=null
	   else
	   rs("性别")=request("bb")
	   end if 
	   if request("cc")="请选择年龄" then
	   rs("年龄")=null
	   else
	   rs("年龄")=request("cc")
	   end if 
       if request("dd")="" then 
	   rs("职业")=null
	   else
	   rs("职业")=request("dd")
	   end if 
       if request("ee")="" then
	   rs("住址")=null
	   else
	   rs("住址")=request("ee")
	   end if 
         if request("ff")="请选择" then 
		 rs("伤势")=null
		 else
		 rs("伤势")=request("ff")
		 end if 
    if request("gg")="" then 
	rs("家属姓名")=null
	else
	rs("家属姓名")=request("gg")
	end if 
     if request("hh")="" then 
	 rs("结案时间")=null
	 else
	 rs("结案时间")=request("hh")
	 end if 
rs.update
rs.close
'conn.close
'response.redirect "../yinyun/accsident1.asp"
   set rs=nothing
   conn.close
   set conn=nothing
  
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>成功</title>
</head>

<body>
<div align="center">修改成功,<a href="../yinyun/accsident1.asp" target="_parent">查看修改结果</a></div>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?