Sorting out all the various states you can get with multiple forms can get messy really quickly if you try and handle it by yourself. You are better off using a module like CGI::Application which gives you a nice architecture for this type of thing.
Basically, your script becomes a small stub which just contains configuration information and the bulk of the code is in one or more modules which are made of subroutines which represent 'run-modes' or pages in yourapplication. You can navigate from page to page by calling different run-modes and store state in between. As a bonus it also has hooks into HTML::Template to keep your business logic seperate from your HTML. And you can use any of the functions from CGI.pm.
--
જલધર
In reply to Re: CGI.pm multiple forms
by jaldhar
in thread CGI.pm multiple forms
by FireBird34
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |