After submit form open a view
Below code is redirecting to my-page

&lt;?php

function my_module_block_info() {
$blocks['visit'] = array(
    'info' =&gt; t('Visit'),
    'cache' =&gt; DRUPAL_CACHE_GLOBAL
);
return $blocks;
}
function my_module_block_view($delta = '') {
$block = array();
if (arg(0) == 'node' &amp;&amp; is_numeric(arg(1)) &amp;&amp; arg(2) == '') {
    $nid = arg(1);
}
switch ($delta) {
    case 'visit':
        $block['content'] = drupal_get_form('visit_project', $nid);
        break;
}
return $block;
}
function visit_project($form, &amp;$form_state, $nid) {
$form['id'] = array(
    '#type' =&gt; 'hidden',
    '#value' =&gt; $nid,
);
$form['actions'] = array('#type' =&gt; 'actions');
$form['actions'] = array(
    '#type' =&gt; 'submit',
    '#value' =&gt; t('Visit'),
    '#attributes' =&gt; array('class' =&gt; array('general_button')),
    //'#submit' =&gt; array('_visit_project_details')
    '#submit' =&gt; $form['actions']['submit']['#submit'],
);
$form['actions']['#submit'][] = '_visit_project_details';
return $form;
}


function my_module_menu() {
$items['my-page'] = array(
    'title' =&gt; 'Title of my page',
    'page callback' =&gt; 'project_details',
    'access callback' =&gt; TRUE,
);
return $items;
}
function _visit_project_details($form, $form_state)
{
   //$form_state['redirect'] = 'my-page';
   drupal_goto('my-page');
}
function project_details() {
    return '&lt;p&gt;ok in details of '.$_POST['id'].'&lt;/p&gt;';
}