<meta charset="utf-8"><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
Instead of "print $messages", please try "drupal_set_message($message)"</blockquote><div><br></div><div>This should NOT be used in the theme layer. The $messages variable is already set for the current request and will not be rendered until the following request. </div>
<div><br></div><div>If you don't see $messages in your template, it's likely that the variable simply doesn't exist. Use a preprocess function to determine what variables are available. See <a href="http://drupal.org/node/223430">http://drupal.org/node/223430</a></div>
<div><br></div><br><div class="gmail_quote">On Fri, Mar 25, 2011 at 6:06 PM, Austin Einter <span dir="ltr"><<a href="mailto:austin.einter@gmail.com">austin.einter@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>Instead of "print $messages", please try "drupal_set_message($message)"</div>
<div> </div>
<div>Thanks<br>Austin.</div>
<div><br> </div>
<div class="gmail_quote">On Sat, Mar 26, 2011 at 3:25 AM, Damian Adriel Perez Valdes <span dir="ltr"><<a href="mailto:damian.adriel@gmail.com" target="_blank">damian.adriel@gmail.com</a>></span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">hi:<br><br>i have a problem. I have a theme for my form, but I can't show the message error. What can I do ?<br>
<br>thanks.<br><br><br><b>form.tpl.php</b><br><?php if ($show_messages && $messages): print $messages; endif; ?><br><br><?php echo drupal_render($form["nombres"]); ?><br><?php echo drupal_render($form["submit"]); ?><br>
</blockquote></div><br>
</blockquote></div><br>