title: Pass form data from block to a page view in Drupal
body: <p>I am using the location module and views module for a postcode search, which works fine in a page display using views. </p>
  
  <p>However I want the user to be able to enter their postcode into a block on the homepage and clicking submit my module sends them to the page created in views and the postcode is set as a session S_SESSION['postcode'] before sending to this page, next I want the location page to load but using the session to display the locations automatically.</p>
  
  <p>Any ideas I am using hook_form_submit() and inside that declaring the $form_state as a session and then using $form_state['redirect'] to sent to the views page path.</p>