Kasturirangan Rangaswamy wrote:
Now, I want to add form validation for each of the first 3 mode screens. I propose to do this using CGI::Application::ValidateRM. This would mean introducing 3 'new' run modes for the sake of processing those forms. I am unable to figure out a way where, if the form processing is successful, the user can go to the next mode. I am pasting below the way my code looks after introduction of 3 new modes. It also contains the place where I am facing an issue.
mode1_process_sub {
# If errors go back to 'mode1_sub'
# Everything OK!
# Want to go to mode2_sub but cannot set the 'rm' hidden variable
as I have lost the template 1 context!. What to do?
return $self->mode2_sub;
}
That should do it.
--
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.