yd2.asp

来自「自己做的毕业设计」· ASP 代码 · 共 18 行

ASP
18
字号
<!--#include file="pass2.asp"-->
<!--#include file=conn.asp-->
<%
id=trim(request("id"))

if id<>"" then
sql=" insert into [yuding](book_id,user_id)values("&id&","&session("id")&")"
response.write"<script language='javascript'>alert('预定成功!');window.location.href='yd.asp';</script>"
else
response.write"<script language='javascript'>alert('错误操作!');window.location.href='index.asp';</script>"
end if


conn.execute(sql)
conn.close  
set conn=nothing
%>

⌨️ 快捷键说明

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