Redirect to anchor after form validation in Drupal 6 I am trying to redirect user to anchor of error form field after form validation.

I have such form and:

$form['#validate'] = 'my_form_validate';


Then, in validation function, if the form has some error message I am trying to scroll to error field:

function my_form_validate() {
    ...
    $form_state['redirect'] = 'node/'.$form['nid']['#value'].'#'.$error_field_anchor;
    ...
}


But my form is not redirecting after validation.

I have tried  another paths such as: user/1, node/123 without anchor but form is not getting redirected to that one.
Use this and put in you form 

$form_state['redirect'] = 'url';