move $messages div to inside the form tag I would like to move the $messages div for any webform type away from a div but instead add it inside the  tag. I've started with THEME_preprocess_page(&amp;$variables) in my template.php but I am stuck because the $variables doesnt set which element (or id/classes) the $messages should be placed in. Any suggestions/help would be appreciated. Thanks!
Copy your webform-form.tpl.php from the contrib webform module folder (under templates) to your themes templates folder and make the modifications there.

Default code:

if (isset($form['preview_message'])) {
  print '&lt;div class="messages warning"&gt;';
  print drupal_render($form['preview_message']);
  print '&lt;/div&gt;';
}