% ' 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("Quiz_E_B_Fields_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(21) Dim arFormDBFields0(21) Dim arFormValues0(21) arFormFields0(0) = "Efield_right" arFormDBFields0(0) = "Efield_right" arFormValues0(0) = Request("Efield_right") arFormFields0(1) = "unique" arFormDBFields0(1) = "unique" arFormValues0(1) = Request("unique") arFormFields0(2) = "path_E_B" arFormDBFields0(2) = "path_E_B" arFormValues0(2) = Request("path_E_B") arFormFields0(3) = "Bfield_up" arFormDBFields0(3) = "Bfield_up" arFormValues0(3) = Request("Bfield_up") arFormFields0(4) = "Bfield_right" arFormDBFields0(4) = "Bfield_right" arFormValues0(4) = Request("Bfield_right") arFormFields0(5) = "Bfield_into" arFormDBFields0(5) = "Bfield_into" arFormValues0(5) = Request("Bfield_into") arFormFields0(6) = "Efield_into" arFormDBFields0(6) = "Efield_into" arFormValues0(6) = Request("Efield_into") arFormFields0(7) = "Bfield_down" arFormDBFields0(7) = "Bfield_down" arFormValues0(7) = Request("Bfield_down") arFormFields0(8) = "Efield_up" arFormDBFields0(8) = "Efield_up" arFormValues0(8) = Request("Efield_up") arFormFields0(9) = "Efield_down" arFormDBFields0(9) = "Efield_down" arFormValues0(9) = Request("Efield_down") arFormFields0(10) = "Efield_out" arFormDBFields0(10) = "Efield_out" arFormValues0(10) = Request("Efield_out") arFormFields0(11) = "Name" arFormDBFields0(11) = "Name" arFormValues0(11) = Request("Name") arFormFields0(12) = "thomson_E_B" arFormDBFields0(12) = "thomson_E_B" arFormValues0(12) = Request("thomson_E_B") arFormFields0(13) = "path_B" arFormDBFields0(13) = "path_B" arFormValues0(13) = Request("path_B") arFormFields0(14) = "Bfield_out" arFormDBFields0(14) = "Bfield_out" arFormValues0(14) = Request("Bfield_out") arFormFields0(15) = "thomson_B" arFormDBFields0(15) = "thomson_B" arFormValues0(15) = Request("thomson_B") arFormFields0(16) = "Bfield_left" arFormDBFields0(16) = "Bfield_left" arFormValues0(16) = Request("Bfield_left") arFormFields0(17) = "Efield_left" arFormDBFields0(17) = "Efield_left" arFormValues0(17) = Request("Efield_left") arFormFields0(18) = "path_E" arFormDBFields0(18) = "path_E" arFormValues0(18) = Request("path_E") arFormFields0(19) = "thomson_E" arFormDBFields0(19) = "thomson_E" arFormValues0(19) = Request("thomson_E") arFormFields0(20) = "Did_own_work" arFormDBFields0(20) = "Did_own_work" arFormValues0(20) = Request("Did_own_work") 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=windows-1252",_ "Form Confirmation",_ "Thank you for submitting the following information:",_ "Quiz_E_B_Fields.asp",_ "Return to the form." End If End If Session.CodePage = Session("FP_OldCodePage") Session.LCID = Session("FP_OldLCID") %>
Answers must be submitted by 9:00am Wednesday, February 20.
Read P3 Chapter 24 Section 2 + Chapter 26 Section 1. Then answer the following questions: