sub login
{
my $self = shift;
my $q = $self->query(); # ?
if($q->param("username") && $q->param("password"))
{
$self->_verify_login() ;
}
else
{
$self->_generate_form();
}
# ... do template stuff here
}
For login_retry - id probably just put a <TMPL_IF> in my original form template,
and reuse it for the retry.
<tmpl_if name="BAD_LOGIN">
Sorry please try again...
</tmpl_if>
<form>...</form>
Hope that helps
In reply to Re: CGI::Application design strategy
by Ctrl-z
in thread CGI::Application design strategy
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |