%@ LANGUAGE = VBSCRIPT %>
<%
if session("id")="" then response.redirect "Login.asp"
dim wasCorrect,dtl
wasCorrect=""
dtl=""
if trim(request("dtl"))<> "" then
if not isnumeric(trim(request("dtl"))) then response.redirect "login.asp"
dtl=trim(request("dtl"))
end if
'actions
dim msg
if trim(request("yoohoo"))<>"" then
yoohoo=trim(request("yoohoo"))
QuestionId=trim(request("QuestionId"))
if trim(yoohoo)= trim(request("answers")) then
msg="Your answer is correct!"
wasCorrect="1"
ids=QuestionId
if not isnumeric(QuestionId) then response.redirect "Login.asp"
'prevent double entry
if trim(request("wasans")) = "" then
sql="INSERT INTO tblPlayAnswer(PlayerId,QuestionId) VALUES (" & session("id") & ","&QuestionId&")"
conn.execute sql
end if
Response.redirect "Exploria_a.asp"
else
msg="Your answer is incorrect.
Please try again."
Response.redirect "Exploria_a.asp?Qid="&QuestionId
end if
end if
%>
|
![]() |
||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|||
|
|||
![]() Site Built and Managed by Travel Spike |