adduser.asp
来自「BBS源代码网上到处都是, 实现语言也不尽相同, 本人上传的BBSExample」· ASP 代码 · 共 22 行
ASP
22 行
<%@LANGUAGE="VBSCRIPT" CODEPAGE="CP_ACP"%>
<!--#Include file="odbc_conn.asp"-->
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<%
dim sql,sname,password
sname=request.Form("sname")
session("name")=request.Form("sname")
password=request.Form("password")
session("password")=request.Form("password")
sql="insert into users(name,password) values('"&sname&"','"&password&"')"
conn.execute(sql)
response.Redirect("showin.asp")
%>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?