Thanks Ulf for the help. I'll explain you the entire scenario that I'm trying to accomplish.
I have a database table which holds some questions and each question has a set of choices (choices table) in a different table and each choice has some subchoices (subchoices table) in another table. Now I have a main table (say lookup table) that simply has the id's of some of the questions that actually exist in the questions table. I'll populate the lookup table through some interface. Now I want to read all the question id's from the lookup table and see in the choies table and display them in the form of radio buttons. Now based on the choice that I select, I'll have to display those corresponding subchoices. Now imagine I have question 1 which has 2 choices and I select the first choice and it in turn has 2 subchoices and now I select the first subchoices and for this combination, I know that I should be taken to question3 as I would have stored it already in the subchoice table. Teh logic goes on and on till I finish displaying all the questions from the logic table. How can I implement such a logic. I can't use AJAX as the system that I'm working on is relatively old.
Please help required.
Joined: Mar 22, 2005
Yes, you want to access form elements whose names you don't know in advance. So you create their names dynamically, as your code does already. My post showed you how to make that work correctly. So I'm not sure what you're asking?
I tried using display:none but since I'm involved with a lot of such hide/display logic, I'm not able to accomplish my task effectively. I want to try out much cleaner solution to this...AJAX. Do you know any source where I can get some samples that explains how we can send AJAX requests to a servlet which in turn talks to the database and send the response to the browser?