http://www.perlmonks.org?node_id=41621


in reply to RE: Re: Multiple Scripts?
in thread Multiple Scripts?

If i do do the radio button way, can i have it, so when the button is active, the form points to one script, and if it is unchecked, the form points to another? basically what he wants is the one field, instead of being printed twice, for each script, its printed once, and based on what date is picked, it goes to the correct script?

Not without Javascript (and don't go there).

So the solution is to either use what jptxs provided (but make sure you pass along your $ENV{QUERY_STRING} tacked on), or to make your two scripts non-CGI. Make them subroutines or Modules, and require/use them in the one CGI script that gets the form data.