How remove DIV elements in rendered search form in theme designing
There are two theme functions you need to override:


theme_form(), in which the wrapping &lt;div&gt; is hard-coded with this line:

return '&lt;form' . drupal_attributes($element['#attributes']) . '&gt;&lt;div&gt;' . $element['#children'] . '&lt;/div&gt;&lt;/form&gt;';

theme_form_element() which contains all of the extra &lt;div&gt;s you're trying to get rid of.


The latter is quite a long function so there may well be some duplication, but I don't know how else you would do this.