in reply to Multiple Scripts?

You say forms, so I assume you mean web forms, right? if so...

You could use redirects. see perldoc CGI. it goes something like:

use strict; use warnings; # i've upgraded to 5.6 last night ;) use CGI; my $answer = new CGI; if ( $date eq "today" ) { print $answer->redirect(-uri=>'http://some.server/cgi/script.pl?dat +e=today'); } else { print $answer->redirect(-uri=>'http://some.server/cgi/script.pl?dat +e=dateItIs'); }

just be sure not to print out the CGI header before doing that - which is my classic blunder when using redirects.

Update:as pointed out above by swiftone and below by Mark Dominus, you probably have form data from the first form you want to pass on to the next. I was trying to keep my example short and sweet so i skipped an example of plugging all that stuff in and settled for just putting one argument for each. But swiftone wisely points to URI::Escape as a great way to format and then feed in a complete adress + arguments to another script you may call on. Basically, don't forget to pass on all the data you've collected on the first screen somehow.

<myExperience> $mostLanguages = 'Designed for engineers by engineers.'; $perl = 'Designed for people who speak by a linguist.'; </myExperience>

Replies are listed 'Best First'.
RE: Re: Multiple Scripts?
by Dominus (Parson) on Nov 14, 2000 at 22:57 UTC
    I don't think that's going to work, because there was form post data, and the posted data will probably not be redirected to the new URL.