pagination with arraydataprovider

i m using array dataprovider and i have a form where user pass search parameters and using those parameters i m finding result and storing in array and that array i m passing into arraydataprovider, now my problem is array has lots of data so it is showing pagination but when i click on pagination links it is giving me error coz of action is not getting parameters those user passing in search

so i need to pass parameters those user pass when he clicks on pagination ?

so lz help me wat i do,how pagination will work when gridview data is coming on base of user search options

my problem is same as like this link