Thanks Michael and William.
To clarify, I have a runmode that goes to a database, does a rather extensive query, then returns an array of unique id's. The form for this runmode then gives the user a chance to choose how the data are to be displayed. I would like to pass this array to the next runmode for processing.
Yeah, that would be a pain to pass around. But if you don't want to use a session then that's what you'll have to do. You might have to do it as a CSV line or multiple hidden parameters, etc.
Using sessions is one possibility, and I should probably go that direction anyway, but....
It's not that hard, really... to use CGI::Application::Plugin::Session is as simple as
use CGI::Application::Plugin::Session;
#then later in a run mode
my $data = $self->session('some_data');That's about it to use file based sessions...
And in reply to William, I probably am confused about how the web application processes forms. Thanks for helping out!
Sean
On Sep 8, 2004, at 3:19 PM, Michael Peters wrote:
It depends on what you mean by "pass cgi parameters between run modes".
If you mean that one mode generates a page that the user sees and interacts with which in turn calls another run mode, then yes.
If you mean that one mode does something and then returns another mode (return $self->mode1 ) then no.
Depending on what you want to pass around, a session (CGI::Session, Apache::Session, or even better, CGI::Application::Pluing::Session) would be better. The only thing you should need to pass around would be the session id, but I usually keep that in a cookie.
Does that help?
Sean Davis wrote:
I am using HTML::Template and need to pass cgi parameters between run modes. Do I have to always use a "hidden" field, or is it adequate to set the parameter via $query->param('name','value')? In my current app, I seem to have to use a hidden field and I have seen others choosing to do both, also. Can someone clarify for me?
Thanks.
Sean
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-- Michael Peters Developer Plus Three, LP
--------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Michael Peters Developer Plus Three, LP
--------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
