%' 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 = 28591 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("feedback_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(25) Dim arFormDBFields0(25) Dim arFormValues0(25) arFormFields0(0) = "wordofmouth" arFormDBFields0(0) = "wordofmouth" arFormValues0(0) = Request("wordofmouth") arFormFields0(1) = "Forgot" arFormDBFields0(1) = "Forgot" arFormValues0(1) = Request("Forgot") arFormFields0(2) = "Street" arFormDBFields0(2) = "Street" arFormValues0(2) = Request("Street") arFormFields0(3) = "ChurchPhoneCall" arFormDBFields0(3) = "ChurchPhoneCall" arFormValues0(3) = Request("ChurchPhoneCall") arFormFields0(4) = "Localphone" arFormDBFields0(4) = "Localphone" arFormValues0(4) = Request("Localphone") arFormFields0(5) = "ResStreet" arFormDBFields0(5) = "ResStreet" arFormValues0(5) = Request("ResStreet") arFormFields0(6) = "webaddressunknown" arFormDBFields0(6) = "webaddressunknown" arFormValues0(6) = Request("webaddressunknown") arFormFields0(7) = "OtherExplanation" arFormDBFields0(7) = "OtherExplanation" arFormValues0(7) = Request("OtherExplanation") arFormFields0(8) = "OtherLiterature" arFormDBFields0(8) = "OtherLiterature" arFormValues0(8) = Request("OtherLiterature") arFormFields0(9) = "Email" arFormDBFields0(9) = "Email" arFormValues0(9) = Request("Email") arFormFields0(10) = "Link" arFormDBFields0(10) = "Link" arFormValues0(10) = Request("Link") arFormFields0(11) = "Bulletin" arFormDBFields0(11) = "Bulletin" arFormValues0(11) = Request("Bulletin") arFormFields0(12) = "City" arFormDBFields0(12) = "City" arFormValues0(12) = Request("City") arFormFields0(13) = "MemberChoices" arFormDBFields0(13) = "MemberChoices" arFormValues0(13) = Request("MemberChoices") arFormFields0(14) = "Informer" arFormDBFields0(14) = "Informer" arFormValues0(14) = Request("Informer") arFormFields0(15) = "FirstName" arFormDBFields0(15) = "FirstName" arFormValues0(15) = Request("FirstName") arFormFields0(16) = "UBCNews" arFormDBFields0(16) = "UBCNews" arFormValues0(16) = Request("UBCNews") arFormFields0(17) = "PastorVisit" arFormDBFields0(17) = "PastorVisit" arFormValues0(17) = Request("PastorVisit") arFormFields0(18) = "Other" arFormDBFields0(18) = "Other" arFormValues0(18) = Request("Other") arFormFields0(19) = "ResCity" arFormDBFields0(19) = "ResCity" arFormValues0(19) = Request("ResCity") arFormFields0(20) = "LastName" arFormDBFields0(20) = "LastName" arFormValues0(20) = Request("LastName") arFormFields0(21) = "Literature" arFormDBFields0(21) = "Literature" arFormValues0(21) = Request("Literature") arFormFields0(22) = "Zipcode" arFormDBFields0(22) = "Zipcode" arFormValues0(22) = Request("Zipcode") arFormFields0(23) = "State" arFormDBFields0(23) = "State" arFormValues0(23) = Request("State") arFormFields0(24) = "Comments" arFormDBFields0(24) = "Comments" arFormValues0(24) = Request("Comments") FP_SaveFormFields fp_rs, arFormFields0, arFormDBFields0 If Request.ServerVariables("REMOTE_HOST") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("REMOTE_HOST"), "Remote_computer_name" End If If Request.ServerVariables("HTTP_USER_AGENT") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("HTTP_USER_AGENT"), "Browser_type" 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 FP_FormConfirmation "text/html; charset=iso-8859-1",_ "Form Confirmation",_ "Thank you for submitting the following information:",_ "feedback.asp",_ "Return to the form." End If End If Session.CodePage = Session("FP_OldCodePage") Session.LCID = Session("FP_OldLCID") %>
|
|