📄 stud_del.asp
字号:
<!-- #include file="cookies.asp" -->
<%
if trim(request.form("id"))="" then
%>
<script>
window.alert("请选择要删除的考生")
history.go(-1)
</script>
<%else%>
<!-- #include file="conn/conn.asp" -->
<%
x=trim(request.form("id"))
y=split(x,",") '拆分复选框中对应的用户id放到数组y中
z=ubound(y) '取数据个数
'以下选换选中id 删除
for i=0 to z
sql="delete from student where id='"&trim(y(i))&"'"
conn.execute(sql)
next
conn.close
set conn=nothing
%>
<script>
window.alert("成功删除考生!")
location.href='stud_manage.asp'
</script>
<%
end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -