disciple has asked for the wisdom of the Perl Monks concerning the following question:
Using CGI::Application I will be displaying several forms. Each form will need it's own run mode obviously, but when the user submits the form should the next step be it's own run mode as well. I.E. If I have a request_new mode for displaying a form to enter a new request, should there be another mode that will be executed when the form is submitted? Is this the way most of you would do it? I have read the documentation and this is what it recommends, but I want to check with you all to see if you normally do it a different way. I also did a search on "run mode" but nothing answered my question, unless I missed something.
An alternative I have thought of would be to re-use the same runmode, and check the value of the submit button which would tell me the user submitted the form. So each run mode function would handle displaying the form if the user has not submitted it, otherwise it would process the data.
I want to implement this the way most of you would do it because it will increase the probability that another Perl/CGI programmer will understand it immediately.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Question about designing a web app using CGI::Application
by PodMaster (Abbot) on Feb 22, 2004 at 21:31 UTC | |
by disciple (Pilgrim) on Feb 22, 2004 at 22:21 UTC | |
|
Re: Question about designing a web app using CGI::Application
by skx (Parson) on Feb 22, 2004 at 22:12 UTC | |
|
Re: Question about designing a web app using CGI::Application
by AidanLee (Chaplain) on Feb 23, 2004 at 02:03 UTC | |
|
Re: Question about designing a web app using CGI::Application
by cees (Curate) on Feb 22, 2004 at 23:39 UTC | |
|
Re: Question about designing a web app using CGI::Application
by perrin (Chancellor) on Feb 23, 2004 at 04:36 UTC | |
|
Re: Question about designing a web app using CGI::Application
by jdtoronto (Prior) on Feb 23, 2004 at 04:24 UTC | |
|
Re: Question about designing a web app using CGI::Application
by disciple (Pilgrim) on Feb 23, 2004 at 15:54 UTC |