Passing filters to a View
For this purpose is better to use exposed filters. You can hide output of this filter in theming - it still be working. Just pass filters vlue in GET parameters to view's page.