[Israel.pm] handling run modes in CGI::Application
Shlomi Fish
shlomif at iglu.org.il
Fri Mar 14 16:04:59 EET 2008
On Friday 14 March 2008, Shmuel Fomberg wrote:
> 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?
>
See:
HTML::Widget, CGI::FormBuilder, Rose::HTML::Form, HTML::FormFu,
Data::FormValidator, Form::Processor . There's a lot of choice. I have worked
a little with WWW::Form and now maintain it, but cannot really recommend it.
Regards,
Shlomi Fish
---------------------------------------------------------------------
Shlomi Fish shlomif at iglu.org.il
Homepage: http://www.shlomifish.org/
I'm not an actor - I just play one on T.V.
More information about the Perl
mailing list