Filling a tab from another tab

Hello,

I have a protocol on the webport containing 2 tabs (2 input forms).

I'd like to fill the first tab, execute a query based on the parameters in this first tab and either return the results in a text box in the second tab or in a new tab (according to the parameters).

I was wondering if I could do that with only one button and then how to get the hand on the second tab.

Thanks for your help

Florent