% ' FP_ASP ASP Automatically generated by a Frontpage Component. Do not Edit. On Error Resume Next Session("FP_OldCodePage") = Session.CodePage Session("FP_OldLCID") = Session.LCID Session.CodePage = 1252 Err.Clear 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, "Cannot create connection" Set fp_rs = Server.CreateObject("ADODB.Recordset") FP_DumpError strErrorUrl, "Cannot create record set" fp_conn.Open Application("dbcweb_ConnectionString") FP_DumpError strErrorUrl, "Cannot open database" fp_rs.Open "catreq", fp_conn, 1, 3, 2 ' adOpenKeySet, adLockOptimistic, adCmdTable FP_DumpError strErrorUrl, "Cannot open record set" fp_rs.AddNew FP_DumpError strErrorUrl, "Cannot add new record set to the database" Dim arFormFields0(17) Dim arFormDBFields0(17) Dim arFormValues0(17) arFormFields0(0) = "maillist" arFormDBFields0(0) = "maillist" arFormValues0(0) = Request("maillist") arFormFields0(1) = "optother" arFormDBFields0(1) = "optother" arFormValues0(1) = Request("optother") arFormFields0(2) = "optbarcode" arFormDBFields0(2) = "optbarcode" arFormValues0(2) = Request("optbarcode") arFormFields0(3) = "optpos" arFormDBFields0(3) = "optpos" arFormValues0(3) = Request("optpos") arFormFields0(4) = "demodownloaded" arFormDBFields0(4) = "demodownloaded" arFormValues0(4) = Request("demodownloaded") arFormFields0(5) = "optshipping" arFormDBFields0(5) = "optshipping" arFormValues0(5) = Request("optshipping") arFormFields0(6) = "optbusact" arFormDBFields0(6) = "optbusact" arFormValues0(6) = Request("optbusact") arFormFields0(7) = "othersource" arFormDBFields0(7) = "othersource" arFormValues0(7) = Request("othersource") arFormFields0(8) = "firstname" arFormDBFields0(8) = "firstname" arFormValues0(8) = Request("firstname") arFormFields0(9) = "optdevtools" arFormDBFields0(9) = "optdevtools" arFormValues0(9) = Request("optdevtools") arFormFields0(10) = "lastname" arFormDBFields0(10) = "lastname" arFormValues0(10) = Request("lastname") arFormFields0(11) = "email" arFormDBFields0(11) = "email" arFormValues0(11) = Request("email") arFormFields0(12) = "optsalesint" arFormDBFields0(12) = "optsalesint" arFormValues0(12) = Request("optsalesint") arFormFields0(13) = "optinvmgr" arFormDBFields0(13) = "optinvmgr" arFormValues0(13) = Request("optinvmgr") arFormFields0(14) = "company" arFormDBFields0(14) = "company" arFormValues0(14) = Request("company") arFormFields0(15) = "TableName" arFormDBFields0(15) = "city" arFormValues0(15) = Request("TableName") arFormFields0(16) = "othertext" arFormDBFields0(16) = "othertext" arFormValues0(16) = Request("othertext") FP_SaveFormFields fp_rs, arFormFields0, arFormDBFields0 FP_SaveFieldToDB fp_rs, Now, "timestamp" fp_rs.Update FP_DumpError strErrorUrl, "Cannot update the database" fp_rs.Close fp_conn.Close Session("FP_SavedFields")=arFormFields0 Session("FP_SavedValues")=arFormValues0 Session.CodePage = Session("FP_OldCodePage") Session.LCID = Session("FP_OldLCID") Response.Redirect "demos.asp" End If End If Session.CodePage = Session("FP_OldCodePage") Session.LCID = Session("FP_OldLCID") %>
| ||||||||||||||||||||||
|
Web designed by
Database
Creations
|