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' => 'value', '#value' => $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?