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.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |