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

Ash Berlin ash at cpan.org
Fri Sep 8 11:49:13 CEST 2006


Tobias Kraemer wrote:
> Zitat von Andreas Marienborg <omega at palle.net>:
>
>   
>>      if ( ! $result_note->has_errors and $c->req->method eq 'POST') {
>>
>>
>> is what I usually do.
>>     
>
> Ok, but what about forms using the GET method? I don't want to solely
> use POST from now on because GET sometimes has its benefits (bookmarkable
> results, et cetera).
>
> -- Tobias
>
>
>   

$c->forward('foo') if $result->submitted && scalar $result->has_errors == 0;

(assuming $w->indicator has been set).

Ash





More information about the Html-widget mailing list