Ok, what i'm doing is i have one form that encapsultes an unknown quantity of smaller forms depending on the number being passed into "quan". Now my question is can the next
servlet that the Main form is being submited too see the fields inside of the smaller forms? Sorry about cutting off the Main form close tag and the submit button.
out.println ("<FORM method='POST' action='http://localhost:8080/servlet/htmlser2'");
out.println ("name = 'hdfrm' >");
for (int i = 1; i < quan; i++)
{
System.out.println("" + i + "");
out.println("<Form name = " + i + ">");
out.println(""+ i +") <input type = text name = Question" + i + "></input><br>");
out.println("<input type = radio name = Answer" + i + "></input> <input Type = checkbox name =Possible" + i + "-1 ></input> <input type = text name =PossibleText" + i + "-1></input>");
out.println("<br><input type = radio name = Answer" + i + "></input> <input Type = checkbox name =Possible" + i + "-2></input> <input type = text name =PossibleText" + i + "-2></input>");
out.println("<br><input type = radio name = Answer" + i + "></input> <input Type = checkbox name =Possible" + i + "-3></input> <input type = text name =PossibleText" + i + "-3></input>");
out.println("<br><input type = radio name = Answer" + i + "></input> <input Type = checkbox name =Possible" + i + "-4></input> <input type = text name =PossibleText" + i + "-4></input>");
out.println("</form>");
}
System.out.println("After loop");
out.println ("<table>");
Any ideas would be greatly appreciated.
Thanks Brian