<%' 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") %> Feedback

Click to E-Mail University Baptist Church

University Baptist Church

1197 University Avenue
Fairbanks, Alaska 99709 (907) 479-2440

[Home] [Announcements] [Newsletters] [Schedules] [Site Index]
[Calendar] [Humor] [Prayer Requests] [Devotional][Feedback]

 [an error occurred while processing this directive]Friday, 09-May-2008 10:12:21 MST

 
<% Function FP_SaveFormFields(rs, rgFormFields, rgDBFields) On Error Resume Next Err.Clear Dim i For i = 0 To UBound(rgFormFields) FP_SaveFormField rs, rgFormFields(i), rgDBFields(i) Next Err.Clear End Function Function FP_SaveFormField(rs, strField, strDBField) On Error Resume Next Err.Clear If (Request.Form(strField)) = "" And rs(strDBField).Type <> adBoolean Then Exit Function End If FP_SaveFieldToDB rs, Request.Form(strField), strDBField Err.Clear End Function Function FP_SaveFieldToDB(rs, strField, strDBField) On Error Resume Next Err.Clear Dim fp_Debug fp_Debug = False Select Case rs(strDBField).Type Case adInteger Or adBigInt Or adUnsignedTinyInt Or adUnsignedSmallInt Or adUnsignedInt Or adUnsignedBigInt rs(strDBField) = CInt(strField) Case adSingle Or adDecimal Or adNumeric rs(strDBField) = CSng(strField) Case adDouble rs(strDBField) = CDbl(strField) Case adCurrency rs(strDBField) = CCur(strField) Case adBoolean rs(strDBField) = CBool(strField) Case adDate Or adDBDate Or adDBTime or adDBTimeStamp rs(strDBField) = CDate(strField) Case Else rs(strDBField) = CStr(strField) End Select If fp_Debug Then strError = "Cannot save value """ & strField & """ to database field """ & strDBField & """" Else strError = "Cannot save value to database field" End If FP_DumpError strErrorUrl, strError Err.Clear End Function Function FP_EncodeOutput(str) FP_EncodeOutput = str FP_EncodeOutput = Replace(FP_EncodeOutput,"&","^^@^^") FP_EncodeOutput = Server.HTMLEncode(FP_EncodeOutput) FP_EncodeOutput = Replace(FP_EncodeOutput,"^^@^^","&") End Function Function FP_FormConfirmation(szCharset, szTitle, szmsg1, szUrl, szMsg2) On Error Resume Next Response.Write "" & vbCrLf Response.Write "" & vbCrLf Response.Write "" & vbCrLf Response.Write "" & szTitle & "" & vbCrLf Response.Write "" & vbCrLf Response.Write "" & vbCrLf Response.Write "

" & szTitle & "

" & vbCrLf Response.Write "

" & szMsg1 &"

" & vbCrLf Response.Write "

" & vbCrLf For Each item in Request.Form If item <> "VTI-GROUP" Then Response.Write "" & item & "" & ": " & FP_EncodeOutput(Request.Form(item)) & "
" & vbCrLf End If Next Response.Write "

" & vbCrLf Response.Write "

" & szMsg2 & "

" & vbCrLf Response.Write "" & vbCrLf Response.Write "" & vbCrLf Session.CodePage = Session("FP_OldCodePage") Session.LCID = Session("FP_OldLCID") Response.End End Function Function FP_FormConfirmationFromArrays(szCharset, szTitle, szmsg1, szUrl, szMsg2, rgDBFields, rgDBValues) On Error Resume Next Response.Write "" & vbCrLf Response.Write "" & vbCrLf Response.Write "" & vbCrLf Response.Write "" & szTitle & "" & vbCrLf Response.Write "" & vbCrLf Response.Write "" & vbCrLf Response.Write "

" & szTitle & "

" & vbCrLf Response.Write "

" & szMsg1 &"

" & vbCrLf Response.Write "

" & vbCrLf For j = 0 To UBound(rgDBFields) - 1 Response.Write "" & rgDBFields(j) & "" & ": " & FP_EncodeOutput(rgDBValues(j)) & "
" & vbCrLf Next Response.Write "

" & vbCrLf Response.Write "

" & szMsg2 & "

" & vbCrLf Response.Write "" & vbCrLf Response.Write "" & vbCrLf Session.CodePage = Session("FP_OldCodePage") Session.LCID = Session("FP_OldLCID") Response.End End Function Function FP_DumpError(strErrorUrl, strMsg) On Error Resume Next Dim fp_Debug fp_Debug = False If Err.Number <> 0 Then fp_conn.Close Session.CodePage = Session("FP_OldCodePage") Session.LCID = Session("FP_OldLCID") If strErrorUrl <> "" Then Response.Redirect strErrorUrl Else Response.Write " " & Server.HTMLEncode(strMsg) & "

" if fp_Debug Then Response.Write "Error Description: " & Server.HTMLEncode(Err.Description) & "

" Response.Write "Error Number: " & Server.HTMLEncode(Err.Number) & "

" Response.Write "Error Source: " & Server.HTMLEncode(Err.Source) & "

" End If Response.End End If End if End Function %>

Feedback Form for UBC

Please tell us what you think about our church, ministries, services, or web site.

How can we help you? If you provide us with your contact information, we will be able to reach you in case we have any questions. For prayer requests, send us an email - do not use this form.

Thank you for visiting our site; your comments are appreciated!

Please complete as much of this form as you wish.
Click on Submit when ready to send.

Email address (required) 

First Name (required)

Last Name (required)

horizontal rule

How did you get our web site address?

Choose one or leave as is:

I followed a link.

I saw it in the church bulletin.

Someone told me about it.

I read about it in some other church literature.

I cannot remember.

Other? Please explain:

horizontal rule

Do you want to receive publications or emails from UBC?

Please add me to your mailing list for the monthly church newsletter, the UBC Informer. I have checked this box and given my mailing address below.

I would like to be mailed other literature, so I have checked here and entered my mailing address below, indicating what in particular I would like.

Mailing Address (required if you checked either of the boxes above.)

Street:
City: State: Zip:

Please add me to your weekly email newsletter, UBCNews. 

horizontal rule

For those who live in or near Fairbanks, Alaska:

I would like the pastor to visit me, so I have checked here and filled in my physical address below. I have also put my telephone number so he can call ahead.

I would like someone from the church to phone me, so I have checked here and put my phone number below.

Physical Address: (required if you checked either of the boxes above.)

Street:
City:    

Telephone: (required if you checked either of the boxes above.) 

horizontal rule

I am a member of UBC and would like to:

horizontal rule

Any other comments?