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>

In reply to Re: Multiple Scripts? by jptxs
in thread Multiple Scripts? by ImpalaSS

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.