Change position of submit button on form This is my code:

function feature_contact_form_form_alter(&amp;$form, $form_state, $form_id)
{ 
if ($form_id == 'contact_form_node_form') {
  $form['field_user_agent']['#type'] = 'hidden';
  $form['field_ip_address']['#type']      = 'hidden';
  $form['buttons']['submit']['#weight'] = -15;
}
}


I am using Drupal 6. I am trying to change the position of the submit button. I am using conditional fields also on this content type. weighting is not changing the position.
I added the form elements submit buttons onto the node add/edit panel in the correct place, which solved my problem.