I've 2 drop down menu where where fields are inserted through sql querry. My problem is as follows:

Suppose I select ParamenterA in the first drop down menu, then only the values related to ParameterA should be displayed in second dropdown menu.

After selecting both values, I click on submit to get related data from database.

Kindly guide how to proceed.