% ' 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_Satellites1_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(23) Dim arFormDBFields0(23) Dim arFormValues0(23) arFormFields0(0) = "less_month" arFormDBFields0(0) = "less_month" arFormValues0(0) = Request("less_month") arFormFields0(1) = "period_nearearth" arFormDBFields0(1) = "period_nearearth" arFormValues0(1) = Request("period_nearearth") arFormFields0(2) = "speed_planet_mass" arFormDBFields0(2) = "speed_planet_mass" arFormValues0(2) = Request("speed_planet_mass") arFormFields0(3) = "speed_sat_radius" arFormDBFields0(3) = "speed_sat_radius" arFormValues0(3) = Request("speed_sat_radius") arFormFields0(4) = "space_probe" arFormDBFields0(4) = "space_probe" arFormValues0(4) = Request("space_probe") arFormFields0(5) = "more_month" arFormDBFields0(5) = "more_month" arFormValues0(5) = Request("more_month") arFormFields0(6) = "net_work" arFormDBFields0(6) = "net_work" arFormValues0(6) = Request("net_work") arFormFields0(7) = "great_small" arFormDBFields0(7) = "great_small" arFormValues0(7) = Request("great_small") arFormFields0(8) = "planet" arFormDBFields0(8) = "planet" arFormValues0(8) = Request("planet") arFormFields0(9) = "gravity_work" arFormDBFields0(9) = "gravity_work" arFormValues0(9) = Request("gravity_work") arFormFields0(10) = "cavendish" arFormDBFields0(10) = "cavendish" arFormValues0(10) = Request("cavendish") arFormFields0(11) = "speed_sat_mass" arFormDBFields0(11) = "speed_sat_mass" arFormValues0(11) = Request("speed_sat_mass") arFormFields0(12) = "Name" arFormDBFields0(12) = "Name" arFormValues0(12) = Request("Name") arFormFields0(13) = "principles" arFormDBFields0(13) = "principles" arFormValues0(13) = Request("principles") arFormFields0(14) = "equal_month" arFormDBFields0(14) = "equal_month" arFormValues0(14) = Request("equal_month") arFormFields0(15) = "explanation" arFormDBFields0(15) = "explanation" arFormValues0(15) = Request("explanation") arFormFields0(16) = "astronomer" arFormDBFields0(16) = "astronomer" arFormValues0(16) = Request("astronomer") arFormFields0(17) = "GR_predictions" arFormDBFields0(17) = "GR_predictions" arFormValues0(17) = Request("GR_predictions") arFormFields0(18) = "apparent_weight" arFormDBFields0(18) = "apparent_weight" arFormValues0(18) = Request("apparent_weight") arFormFields0(19) = "escape_effect" arFormDBFields0(19) = "escape_effect" arFormValues0(19) = Request("escape_effect") arFormFields0(20) = "times" arFormDBFields0(20) = "times" arFormValues0(20) = Request("times") arFormFields0(21) = "field_scientist" arFormDBFields0(21) = "field_scientist" arFormValues0(21) = Request("field_scientist") arFormFields0(22) = "Did_own_work" arFormDBFields0(22) = "Did_own_work" arFormValues0(22) = 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_Satellites.asp",_ "Return to the form." End If End If Session.CodePage = Session("FP_OldCodePage") Session.LCID = Session("FP_OldLCID") %>
Answers must be submitted by 10:00am Wednesday, Feb. the 20th
Read CP Chapter 14 + P3 Chapter 8. Then answer the following questions.