Custom redirect for form-edit displayed in Views header
You could to use hook_form_FORM_ID. Something like this:

function mymodule_form_page_node_form_ater(&amp;$form, &amp;$form_state, $form_id){
   if(current_path() == 'page/where/my/view/is'){
     $form_state['redirect'] = 'page/to/redirect';
   }
}


If you don't want to use a hook, you can do something like this:

 $edit_page['buttons']['submit']['#submit'][] = 'redirect_submit';


Then,

 function redirect_submit($form, &amp;$form_state){
  $form_state['redirect'] = 'path/to/rediect';
 }


Still it is bad practice to inlcude php in your views header. You should implement a custom area handler.


How to create a view area handler
https://api.drupal.org/api/views/handlers!views_handler_area.inc/group/views_area_handlers/7
https://oliverhuynh.wordpress.com/2011/06/23/custom-views-handler-drupal-7-template/