O, change $ENV{REQUEST_METHOD} to "GET" before check_rm()  works.

2011/6/15 silent <[email protected]>:
> 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 ?
>

#####  CGI::Application community mailing list  ################
##                                                            ##
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp    ##
##                                                            ##
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:          http://cgiapp.erlbaum.net/                 ##
##                                                            ##
################################################################

Reply via email to