Instead of "print $messages", please try "drupal_set_message($message)"
 
Thanks
Austin.

 
On Sat, Mar 26, 2011 at 3:25 AM, Damian Adriel Perez Valdes <damian.adriel@gmail.com> wrote:
hi:

i have a problem. I have a theme for my form, but I can't show the message error. What can I do ?

thanks.


form.tpl.php
<?php if ($show_messages && $messages): print $messages; endif; ?>

<?php echo drupal_render($form["nombres"]); ?>
<?php echo drupal_render($form["submit"]); ?>