Wednesday 18 May 2005 2:08:37 am
How can I test, in templates, the existence of a get/post variable? Using ezhttp I have the template error: <i>Unknown post/get variable 'optvar'</i>
As example, if a form field is optional, when not filled , it doesn't appear in POST , and when I try the template code:
...
{section show=is_set(ezhttp( 'optvar', 'post' ))}
optvar = {ezhttp( 'optvar', 'post')}<br>
{/section}
...
It works well but it returns also the described template error.
|