How to pass a value from form(block) to the page and show this page? I created a block with a form (elemnts: textfield and submit). Also have a page created by the hook_menu. I want that when you click on submit in block, the value from textfield transmitted to a page that is created using the hook_menu and show this page with data from textfield.
In the future I plan to transfer some text in the html markup or array.
Read about hook_menu and wildcards. Here is an example:

function my_form($form, &amp;$form_state) {
  $form['name'] = array(
    '#type' =&gt; 'textfield',
    '#title' =&gt; 'Name',
  );

  $form['submit'] = array(
    '#type' =&gt; 'submit',
    '#value' =&gt; 'Ok',
  );

  return $form;
}


function my_form_submit($form, &amp;$form_state) {
  $form_state['redirect'] = 'path/' . $form_state['values']['name'];
}

function MODULE_menu() {
  $items['path/%'] = array(
    'title' =&gt; 'TTITLE',
    'page callback' =&gt; 'my_page_callback',
    'page arguments' =&gt; array(1),
    'access arguments' =&gt; array('access content'),
    'type' =&gt; MENU_CALLBACK,
  );

  return $items;
}

function my_page_callback($var) {
 return 'HELLO ' . $var;
}