Sean Davis wrote:
I am using CGI::App in a mod_perl environment. I typically have run_modes submit back to themselves for validation, etc. If the form information "passes", I return $self->next_run_mode (just an example). I have made a couple of changes to my previous coding style. First, I am using path_info to get the runmode (makes linking and handler dispatching much simpler).
I do this too. Currently with CGI::Application::Dispatch :)
Second, because of the first, I want to use redirects to move from one run_mode to the next; that is, a form submits back to itself and is validated, I do a $self->redirect('next_run_mode'). It seems that redirects do not conserve the POST information. Is this true? If so, does this sound familiar to others? What other coding idioms do people use besides submit-to-self?
What I don't understand is why you can't still return $self->next_run_mode. If you do a redirect using CGI, then it will perform an HTTP redirect which will in turn not carry over the proceeding POST/GET values that came into your script since it will send all new headers to the browser.
--
Michael Peters
Developer
Plus Three, LP
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.