hook_form_alter() is most likely the way to go. Here are some useful links:
Form Theming: How to set $ form ['action']?
Changing forms in Drupal 5 and 6
hook_form_alter
EDIT: answer to comment # 1 below:
How to implement hook_form_alter () :
You must create a module (you cannot use template.php ). This is easier than it sounds.
For a module named "formstuff", you must create formstuff.info and formstuff.module and put them in sites/all/modules or sites/yoursitename/modules . Configure the .info and .module files for the instruction , and then simply create the following function in the .module file:
function formstuff_form_alter(&$form, $form_state, $form_id) {
This function is a hook, because it is correctly named (that is, it replaces the word "hook" with the name of your module) and corresponds to t27> (that is, it takes the same parameters).
Then just plug your module into your site admin and the hook should do the magic.
Note that hook_form_alter refers to the form; this allows you to change it in place.
source share