[cgiapp] can't display and validate only in one run mode with CAP::Plugin::ValidateRM ?

silent silent2600 at gmail.com
Tue Jun 14 22:00:55 EDT 2011


Hi, list

can I do displaying form and validate form only in one run mode ?

# run mod
sub register {
     if ( GET request ) {
         #display form
     }elsif ( POST requst ) {

        #validate
    }
}


I read a little code in CAP::Plugin::ValidateRM, seems the validation
will call this run mode again,
so it will always run into the "POST request" condition ? a loop ?


More information about the cgiapp mailing list