% ' FP_ASP Frontpage 元件自動產生 ASP。請勿編輯。 On Error Resume Next strErrorUrl = "" If Request.ServerVariables("REQUEST_METHOD") = "POST" Then If Request.Form("VTI-GROUP") = "0" Then Err.Clear Set fp_conn = Server.CreateObject("ADODB.Connection") FP_DumpError strErrorUrl, "無法建立連線" Set fp_rs = Server.CreateObject("ADODB.Recordset") FP_DumpError strErrorUrl, "無法建立記錄項" fp_conn.Open Application("new_page_2_ConnectionString") FP_DumpError strErrorUrl, "無法開啟資料庫" fp_rs.Open "結果", fp_conn, 1, 3, 2 ' adOpenKeySet, adLockOptimistic, adCmdTable FP_DumpError strErrorUrl, "無法開啟記錄項" fp_rs.AddNew FP_DumpError strErrorUrl, "無法新增新的記錄項到資料庫" Dim arFormFields0(1) Dim arFormDBFields0(1) arFormFields0(0) = "selectName5" arFormDBFields0(0) = "selectName5" FP_SaveFormFields fp_rs, arFormFields0, arFormDBFields0 If Request.ServerVariables("REMOTE_HOST") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("REMOTE_HOST"), "遠端電腦名稱" End If If Request.ServerVariables("HTTP_USER_AGENT") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("HTTP_USER_AGENT"), "瀏覽器類型" End If FP_SaveFieldToDB fp_rs, Now, "時間戳記" If Request.ServerVariables("REMOTE_USER") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("REMOTE_USER"), "使用者名稱" End If fp_rs.Update FP_DumpError strErrorUrl, "無法更新資料庫" fp_rs.Close fp_conn.Close FP_FormConfirmation "text/html; charset=big5",_ "表單確認",_ "感謝您提交下列資訊:",_ "new_page_2.htm",_ "回到表單" End If End If %> <%@ Language=VBScript %>
|
|
|
聯強 IBM 技嘉 愛普生 HP 華碩 羅技 力捷 微軟 倫飛
tttttt
| |||||||||||||||||||||||||||||||||||||||
|
更新日期: 2002年12月18日。 |
|
更新日期: 2002年12月18日。 |
|
更新日期: 2002年12月18日。 |