[Israel.pm] handling run modes in CGI::Application
Shmuel Fomberg
semuelf at 012.net.il
Fri Mar 14 15:36:31 EET 2008
Hi All.
I'm using CGI::Application and thinking on storing the current run mode in
the session data, instead of the URL/Post data.
It can be useful for rm that print a form. That way, the form data return to
the same rm that create it, and if the data is OK it update the rm and
return html from the new rm handler.
The stupid thing about it is that for every rm-changing there need to be
request, and the previous rm need to actively decide if it allow the user to
navigate. Can be a lot of hassle for simple modes.
On the good side, refreshes are no danger to the app, because the app
already navigated away, and the sent data will be meaningless to the new rm.
What do you think? Good idea or stupid?
On other note, I'm looking for module that will help me handle forms. For
example, that will automatically (don't ask me how) will re-enter the data
to the form, if I send it back to the user for fixing.
I'm reading about HTML::StickyForm. Does anyone have other module to
recommend?
Thanks,
Shmuel.
More information about the Perl
mailing list