addstory.asp

来自「BBS源代码网上到处都是, 实现语言也不尽相同, 本人上传的BBSExample」· ASP 代码 · 共 26 行

ASP
26
字号
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<% option explicit%>
<%Response.Buffer=True%>
<!--#Include file="odbc_conn.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body>
<%	
  Dim guestname,title,body,email
  'guestname=request.Form("name") 
  title=request.Form("title")                  
  body=request.Form("body")      
  Dim sql,svalues
  sql = "Insert Into news(type,author,title,content,times) values('心情故事','" & session("name") & "','"&title & "','"&body& "','" & now & "')"

 ' svalues = "values('" & guestname & "','"&title & "','"&body& "','" & now & "')"
	conn.Execute(sql)                             
	conn.Close  
	set conn=nothing	                             
	Response.Redirect "story.asp"                 
  %>
</body>
</html>

⌨️ 快捷键说明

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