If your data size is small you can use javascript holding all information in an array but if you expect the size of the tables to get massive you need to resubmit. Note that the size of your table will be the amount of information that a web page user will have to download before they see the page. and you normally only have 7 seconds before people get bored and move off to another location.
use a multideminsional array to hold your information you can then use onchange in the select boxes of the first two pull downs to generate the options of the third.
document.myform.myopt3.options.length=0;
for each element to display
document.myform.myopt3.options[document.myform.myopt3.options.length] = new option (value,text);
next