[Maypole] Intelligent CGI/Form processing
Your Name
bg271828@yahoo.com
Fri, 25 Jun 2004 05:50:34 -0700 (PDT)
--- Marius Kjeldahl <marius@kjeldahl.net> wrote:
> I'm trying to add a customized login template to a
> Maypole application.
> Differently from the "bare-bone" data forms
> generated auto-magically by
> Maypole and Class::DBI, the login form would
> typically just prompt for a
> username and a password. If the username/password
> pair does not match, I
> would like to redisplay the same form with an error
> message (should be easy
> enough), but also with the SAME username as the
> previous attempt.
>
> I've done this easily using CGI.pm earlier, but have
> not figured out how to do
> this the best way Maypole/Template Toolkit style.
Is it OK to be using CGI.pm with Maypole if you're
using
the mod_perl instead of the CGI version?
And is there a way to do this for EVERYTHING, not just
for
username/password pairs? Using the built in
Class::DBI::FromCGI, any thing you do that makes
errors
in the form, will just send you back to a fresh
version
of the form, not the one with the things you just
typed.
Jen
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail