You could to use hook_form_FORM_ID. Something like this:
function mymodule_form_page_node_form_ater(&$form, &$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, &$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.