How to set a POST data in value in FAPI I'm trying to port a working FAPI module from  D6 to D7.
I'm passing a POST value to the form and then assigning using :

 $link = check_url(substr($_POST['file_link'], 0, 300));
     $form['anu_download_file_link'] = array(
        '#type' =&gt; 'value',
        '#value' =&gt; $link,
      );


But when form is submitted the form is built again but this POST data file_link is missing in the submit handler.

In D6 $form['#cache']=true was working fine which avoided recreating of the form but now in D7 it does not seem to work.

How can pass POST values to the submit handler?
We need to use in D7 :

$form_state['cache'] = TRUE;
$form_state['no_cache'] = FALSE;


instead of 

$form['$cache']=TRUE in D6