Hi...
Does anyone have used CGI::Application::Plugin::FormState together with
CGI::Application::Dispatch?
I'm building a multiple steps registration (several forms) and I want to
save everything in the db at the final step/last form. In the in between
steps I thought using CAP::FormState to pass data submitted from
previous forms to the next one.
After successful validation of each form I use a call like:
return $self->redirect('/step2/' . $self->form_state->id);
to go to the next one, because CGI::Application::Dispatch is in use.
By C::A::Dispatch module, the 'cap_form_state' param is not set to the
$self->query object , but to $self->param
and after the redirection the new form's $self->query has a new random
string value for 'cap_form_state' param.
A call like:
$self->query->param('cap_form_state', $self->param('cap_form_state');
doesn't seem to work in the runmode (to late?)
And BTW, is it possible to pass hashrefs between forms, like:
$self->form_state->param('step1' => $valid_results_ref);
and retrieve in on the 'next' form? Or do I have to use something like
Storable.pm first on the hashref?
Regards,
Giannis
---------------------------------------------------------------------
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]