📄 saveedit.asp
字号:
<!--#include file="dbpath/dbpath.asp"-->
<!--#include file="function/char.inc"-->
<%
if request.cookies("adminok")="" then
response.redirect "login.asp"
end if
dim typename
dim title
dim content
dim sql
dim rs
dim filename
dim articleid
dim outfile
dim swebname
dim semail
dim suesrname
dim slogo
dim shomepage
dim typeid
swebname=htmlencode(request.form("TxTName"))
semail=htmlencode(request.form("TxtEmail"))
susername=htmlencode(request.form("username"))
slogo=htmlencode(request.form("TxTHomelogo"))
shomepage=htmlencode(request.form("TxTHomepage"))
title=htmlencode(request.form("txttitle"))
content=htmlencode(request.form("txtcontent"))
typeid=request.form("typeid")
articleid=request("id")
set rs=server.createobject("adodb.recordset")
sql="select * from yqlink where articleid="&articleid
rs.open sql,conn,3,3
rs("name")=susername
rs("email")=semail
rs("webname")=swebname
rs("homepage")=shomepage
rs("homelogo")=slogo
rs("typeid")=typeid
rs("title")=title
rs("content")=content
rs("dateandtime")=date()
rs.update
rs.close
response.redirect "manage.asp"
set rs=noting
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -