Form API 'image_button' vs 'submit' breaks my AJAX form I have an AJAX form that works as expected with the following submit code:

$form['submit'] = array(
  '#type' =&gt; 'submit',
  '#value' =&gt; t('Go'),
);


I want to use an image for the button, but the type 'image_button' breaks the AJAX functionality (multiple repopulating select fields, won't appear, or update):

$form['submit'] = array(
  '#type' =&gt; 'image_button',
  '#src' =&gt; '/themes/moon/images/go.gif',
  '#value' =&gt; t('Go'),
);


Oddly, the 'image_button' works fine when clicking it (form works as expected) it's just the AJAX updating of the form that stops working? Drupal Form API Reference
You have to set an unique '#name' tag for EVERY button (submit, image_button, button) on the page. This worked for me.