doadd.asp
来自「网络程序-学生个人信息管理系统。以学生个人用户实际需要为中心」· ASP 代码 · 共 24 行
ASP
24 行
<!--#include file="../login/checklogin.asp"-->
<!--#include file="../database/opendb.asp"-->
<%
cvalidatecode=request("validatecode")
if session("validatecode") <> cvalidatecode then '验证码检查
response.write("<span >验证码错了耶~<a href=""#"" onclick=""history.back()"">回去再试~</a>")
response.End()
end if
title=trim(request("title"))
fatherid=trim(request("fatherid"))
content=trim(request("content"))
strsql="select * from data "
rst.open strsql,my_conn,1,3
rst.addnew
rst("name")=title
rst("content")=content
rst("fatherid")=fatherid
rst("date")=now()
rst.update
%>
<!--#include file="../database/closedb.asp"-->
<%response.redirect "../output/body.asp"%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?