i am a beginner programmer and i am working on a project for an 8 player elimination tournament
i collect by form the 8 teams of two players entered in the tournament on a page called (admin8.asp)
(the form fields are
T1 for team1name
T1P1 for team 1 player 1,
T1P2 for team 1 player 2...etc..)
and passes them to the next page (round1.asp) using the <%=Request("T1"%> etc.. for the next form...
when this page is posted to (round1.asp) then writes an html page of the 8 players in the tournament.... (results.htm)
then a form using radio buttons for each game (R1G1,R1G2 etc) is used to decide who to POST to the next page (round2.asp) (and REwrite results.htm using the same script as begins round1.asp)
this seems to be where i'm running into a problem because i also need to pass on the results of the OLD form on (admin8.asp) to the next form page as well (so that the results.htm page can be properly REwritten)
i use the following at the beginning of the round2.asp page
<%
if Request("R1G1" = "1" then
R2T1 = Request("T1"
else
R2T1 = Request("T2"
end if
if Request("R1G2" = "1" then
R2T2 = Request("T3"
else
R2T2 = Request("T4"
end if
if Request("R1G3" = "1" then
R2T3 = Request("T5"
else
R2T3 = Request("T6"
end if
if Request("R1G4" = 1 then
R2T4 = Request("T7"
else
R2T4 = Request("T8"
end if
%>
but when i use <% =Request("R2T2" %> the results are not printed in the form-table?
what am i doing wrong?
i collect by form the 8 teams of two players entered in the tournament on a page called (admin8.asp)
(the form fields are
T1 for team1name
T1P1 for team 1 player 1,
T1P2 for team 1 player 2...etc..)
and passes them to the next page (round1.asp) using the <%=Request("T1"%> etc.. for the next form...
when this page is posted to (round1.asp) then writes an html page of the 8 players in the tournament.... (results.htm)
then a form using radio buttons for each game (R1G1,R1G2 etc) is used to decide who to POST to the next page (round2.asp) (and REwrite results.htm using the same script as begins round1.asp)
this seems to be where i'm running into a problem because i also need to pass on the results of the OLD form on (admin8.asp) to the next form page as well (so that the results.htm page can be properly REwritten)
i use the following at the beginning of the round2.asp page
<%
if Request("R1G1" = "1" then
R2T1 = Request("T1"
else
R2T1 = Request("T2"
end if
if Request("R1G2" = "1" then
R2T2 = Request("T3"
else
R2T2 = Request("T4"
end if
if Request("R1G3" = "1" then
R2T3 = Request("T5"
else
R2T3 = Request("T6"
end if
if Request("R1G4" = 1 then
R2T4 = Request("T7"
else
R2T4 = Request("T8"
end if
%>
but when i use <% =Request("R2T2" %> the results are not printed in the form-table?
what am i doing wrong?