add variable to process_page($vars) in form function Is there an option to change $vars array in form function? I would like to pass some variables to page template in form creation function .. If not, what are other options to influence page.tpl from form?

EDIT:
I have a function for form creation and i would like to add page class if some params are sent to this function.

function mymodule_test_form($form, &amp;$form_state, $param){
  if ($param == 'special'){
    #add class to page
  }
}


thanks!
It seems to me that you are talking about two different things: altering form fields vs. modifying the $variables array in page.tpl.php.

1) When you say "form creation function", what I hear is that you want to change fields in an existing form. For this, you would want to implement hook_form_alter(). If you want to learn more about how to structure a form, visit the Form Generation page in the Drupal API. 

2) If actually you meant that you want to add or change variables in your page.tpl.php file, then you'll want to implement hook_preprocess_page().