% ' 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("Contact_ConnectionString") FP_DumpError strErrorUrl, "Cannot open database" fp_rs.Open "Results", 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(18) Dim arFormDBFields0(18) Dim arFormValues0(18) arFormFields0(0) = "txbCompany" arFormDBFields0(0) = "txbCompany" arFormValues0(0) = Request("txbCompany") arFormFields0(1) = "txbFirst_Name" arFormDBFields0(1) = "txbFirst_Name" arFormValues0(1) = Request("txbFirst_Name") arFormFields0(2) = "txbEmail" arFormDBFields0(2) = "txbEmail" arFormValues0(2) = Request("txbEmail") arFormFields0(3) = "txbZip" arFormDBFields0(3) = "txbZip" arFormValues0(3) = Request("txbZip") arFormFields0(4) = "txbPhone" arFormDBFields0(4) = "txbPhone" arFormValues0(4) = Request("txbPhone") arFormFields0(5) = "txbExt" arFormDBFields0(5) = "txbExt" arFormValues0(5) = Request("txbExt") arFormFields0(6) = "cbxCrate" arFormDBFields0(6) = "cbxCrate" arFormValues0(6) = Request("cbxCrate") arFormFields0(7) = "cbxAlum" arFormDBFields0(7) = "cbxAlum" arFormValues0(7) = Request("cbxAlum") arFormFields0(8) = "txbState" arFormDBFields0(8) = "txbState" arFormValues0(8) = Request("txbState") arFormFields0(9) = "txbComments" arFormDBFields0(9) = "txbComments" arFormValues0(9) = Request("txbComments") arFormFields0(10) = "cbxIron" arFormDBFields0(10) = "cbxIron" arFormValues0(10) = Request("cbxIron") arFormFields0(11) = "txbAddress1" arFormDBFields0(11) = "txbAddress1" arFormValues0(11) = Request("txbAddress1") arFormFields0(12) = "txbAddress2" arFormDBFields0(12) = "txbAddress2" arFormValues0(12) = Request("txbAddress2") arFormFields0(13) = "cbxSalesman" arFormDBFields0(13) = "cbxSalesman" arFormValues0(13) = Request("cbxSalesman") arFormFields0(14) = "txbFax" arFormDBFields0(14) = "txbFax" arFormValues0(14) = Request("txbFax") arFormFields0(15) = "txbLast_Name" arFormDBFields0(15) = "txbLast_Name" arFormValues0(15) = Request("txbLast_Name") arFormFields0(16) = "C1" arFormDBFields0(16) = "C1" arFormValues0(16) = Request("C1") arFormFields0(17) = "txbCity" arFormDBFields0(17) = "txbCity" arFormValues0(17) = Request("txbCity") FP_SaveFormFields fp_rs, arFormFields0, arFormDBFields0 If Request.ServerVariables("HTTP_USER_AGENT") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("HTTP_USER_AGENT"), "Browser_type" End If If Request.ServerVariables("REMOTE_HOST") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("REMOTE_HOST"), "Remote_computer_name" End If FP_SaveFieldToDB fp_rs, Now, "Timestamp" If Request.ServerVariables("REMOTE_USER") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("REMOTE_USER"), "User_name" End If 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 "Contact_confirm.asp" End If End If Session.CodePage = Session("FP_OldCodePage") Session.LCID = Session("FP_OldLCID") %>
|
Home of THE GENESIS 427 FE Side Oiler Engine Block |
|
As Seen In |
|
Copyright 2004 Genesis Performance Castings LLC, All Rights Reserved |