?? 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 + -