[Html-widget] How to detect valid _and_ submitted?

Tobias Kremer t at funkreich.de
Fri Sep 8 12:05:52 CEST 2006


Zitat von Carl Franks <fireartist at gmail.com>:

> Logically, I would do it that way, but make it a bit clearer:
>
> my $form = $c->widget_result( 'my_form' );
> if ( $form->valid && ! $form->errors ) {
>     $c->forward( 'do_it' );
> }

Ok, I'll stick with this for now. Thanks, Carl!

-- Tobias



More information about the Html-widget mailing list