title: smarty post value issue
body: <p>I am using the following code in my add user form:</p>
  
  <pre><code>&lt;input type="text" size="50" name="name" 
  value="{if isset($post.name)}{$post.name}{elseif isset($details.name)}{$details.name}{/if}" /&gt;
  </code></pre>
  
  <p>However the form returns blank in case of any error(PHP validation) but it should show post value(<code>$post.name</code>)</p>