add.asp

来自「留言簿毕业设计用ASP和SQL2000开发的能够链接」· ASP 代码 · 共 26 行

ASP
26
字号

<html>
<head>
<title></title>
</head>
<body>
<%
  
  Dim sql, name,content,homepage,title,ti_me                     
  
  name = Request("name")
  content = Request("content")
  homepage = Request("homepage")
  title = Request("title")
  ti_me = Request("ti_me")
  Set Conn=Server.CreateObject("ADODB.Connection")
  Conn.ConnectionString="driver={SQL Server};server=(local);UID=sa;PWD=13513343483;Database=学院人事管理系统"
  Conn.Open
 sql="INSERT INTO book (name, content, homepage, title, ti_me) VALUES('" & name & "','" & content & "','" & homepage & "','" & title & "','" & ti_me & "')" 
Conn.Execute(sql)
	  Response.Redirect"index.asp"
%>

</body>

</html>

⌨️ 快捷键说明

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