% ' FP_ASP ASP, die von einer FrontPage-Komponente automatisch generiert wurde. Nicht Editieren. On Error Resume Next Session("FP_OldCodePage") = Session.CodePage Session("FP_OldLCID") = Session.LCID Session.CodePage = 1252 Session.LCID = 1031 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, "Kann Verbindung nicht herstellen" Set fp_rs = Server.CreateObject("ADODB.Recordset") FP_DumpError strErrorUrl, "Kann Datensatzgruppe nicht erstellen" fp_conn.Open Application("feedback_ConnectionString") FP_DumpError strErrorUrl, "Kann Datenbank nicht öffnen" fp_rs.Open "Ergebnisse", fp_conn, 1, 3, 2 ' adOpenKeySet, adLockOptimistic, adCmdTable FP_DumpError strErrorUrl, "Kann Datensatzgruppe nicht öffnen" fp_rs.AddNew FP_DumpError strErrorUrl, "Kann keine neue Datensatzgruppe zu Datenbank hinzufügen" Dim arFormFields0(8) Dim arFormDBFields0(8) Dim arFormValues0(8) arFormFields0(0) = "BesucherTelefon" arFormDBFields0(0) = "BesucherTelefon" arFormValues0(0) = Request("BesucherTelefon") arFormFields0(1) = "BesucherFAX" arFormDBFields0(1) = "BesucherFAX" arFormValues0(1) = Request("BesucherFAX") arFormFields0(2) = "FeedbackTyp" arFormDBFields0(2) = "FeedbackTyp" arFormValues0(2) = Request("FeedbackTyp") arFormFields0(3) = "Feedback" arFormDBFields0(3) = "Feedback" arFormValues0(3) = Request("Feedback") arFormFields0(4) = "BesucherEMail" arFormDBFields0(4) = "BesucherEMail" arFormValues0(4) = Request("BesucherEMail") arFormFields0(5) = "Rückmeldung" arFormDBFields0(5) = "Rückmeldung" arFormValues0(5) = Request("Rückmeldung") arFormFields0(6) = "Betreff" arFormDBFields0(6) = "Betreff" arFormValues0(6) = Request("Betreff") arFormFields0(7) = "BesucherName" arFormDBFields0(7) = "BesucherName" arFormValues0(7) = Request("BesucherName") FP_SaveFormFields fp_rs, arFormFields0, arFormDBFields0 If Request.ServerVariables("REMOTE_USER") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("REMOTE_USER"), "Benutzername" End If If Request.ServerVariables("REMOTE_HOST") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("REMOTE_HOST"), "Name_des_Remotecomputers" End If If Request.ServerVariables("HTTP_USER_AGENT") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("HTTP_USER_AGENT"), "Browsertyp" End If FP_SaveFieldToDB fp_rs, Now, "Timestamp" fp_rs.Update FP_DumpError strErrorUrl, "Kann Datenbank nicht aktualisieren" fp_rs.Close fp_conn.Close FP_FormConfirmation "text/html; charset=windows-1252",_ "Formularbestätigung",_ "Vielen Dank für das Einsenden der folgenden Informationen:",_ "feedback.asp",_ "Zurück zum Formular" End If End If Session.CodePage = Session("FP_OldCodePage") Session.LCID = Session("FP_OldLCID") %>
|
||
08.01.09 |
|
|
Ich freue mich über alle Kommentare und Verbesserungsvorschläge.
|
Stand: 08.01.09