Getting the id of all the elements in a form with errors I am using drupal 6.
All I want is to find the id of each element that has error in form_get_errors.
I am using preprocess to theme the form error section and tried using $vars['form'] with no luck so far.
how can i do that?
You might need to write a custom module for this: 


Use hook_form_alter for the specific form and call form_get_errors.
Theme the results of form_get_erros with hook_theme to pass the results back to your theme.