update.asp
来自「学生管理系统」· ASP 代码 · 共 34 行
ASP
34 行
<html>
<head>
<title>更改</title>
</head>
<body background=tupian\bg7.jpg>
<table cellspacing="0" cellpadding="0" align="center" width="917" height="527">
<tr>
<td width="250"><!--#include file="ch1.asp"-->
</td>
<td width="700" valign="top"><!--#include file="conn.asp"-->
<% dim n,no,username,home,phone
n=request.form("n")
no=request.form("no")
username=request.form("name")
home=request.form("home")
phone=request.form("phone")
set db=server.CreateObject ("ADODB.Recordset")
sql = "update 个人信息 set 编号='"& n &"',学号='"& no &"',家庭住址='"& home &"',手机号码='"& phone &"'where 编号= '" & n & "'"
db.open sql,conn,1,1
%>
<script language="javascript">
alert("更新成功!!!")
location.href="next_down.asp"
</script>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?