📄 do_addsumit.asp
字号:
<%
'读取文本框的值
tusername = Request("tusername")
tmobile = Request("tmobile")
tEmail = Request("tEmail")
tphone = Request("tphone")
tmemo = Request("tmemo")
'连接数据库并插入数据
set conn = Server.CreateObject("ADODB.Connection")
Conn.Open("driver={SQL Server};database=pubs;"&_
"server=localhost;uid=sa;pwd=")
set cmd = Server.CreateObject("ADODB.Command")
cmd.ActiveConnection = conn
sql = "INSERT INTO txl VALUES('" & tusername & "','" & tEmail &_
"','" & tmobile & "','" & tphone & "','" & tmemo & "')"
cmd.CommandText = sql
cmd.Execute()
'返回
Response.Redirect("index.asp")
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -