[cgiapp] can't display and validate only in one run mode with CAP::Plugin::ValidateRM ?
silent
silent2600 at gmail.com
Tue Jun 14 22:48:54 EDT 2011
O, change $ENV{REQUEST_METHOD} to "GET" before check_rm() works.
2011/6/15 silent <silent2600 at gmail.com>:
> 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