I'm developing an app with CGI::App that is more complicated than what I've previously done (three run mode search, results, details kinds of apps). When information needs to be submitted in a form, is it generally better to have one run mode display and process the form, or one to display and one to process? In my current situation, for example, I provide a screen where an administrative user can create new users for the app. A form is displayed which accepts name, password, permissions, etc. When the form is submitted should the same run mode that displayed the form process it, or should I have a separate process_new_user run mode? What's the CGI::App way to do things? A related question: what about having one run mode that handles all forms and then calls appropriate run modes via return $self->appropriate_run_mode to display output based on the form that was submitted? Thanks! =) --TWH
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.