<% function recordAnswer(iQuestion,sAnswer,iYesNo,connection) { //Create the SQL command to record the answer sCommand = "INSERT INTO Answers " + "(QuizID,Question,Answer,Judgment) VALUES(" + Request.Cookies("QuizID") + ", " + iQuestion + ", '" + sAnswer + "', " + iYesNo + ")"; //Issue the command connection.Execute(sCommand); //Check for Errors if (connection.errors.count > 0) Response.Write("recordAnswer connection error..."); } %>