Re: [PBML] Question on web forms?
- "crystaladultpix" <admin@...> wrote:
: --- In perl-beginner@y..., "Charles K. Clarkson" <cclarkson@h...>
: > "crystaladultpix" <admin@c...> wrote:
: > : How do I get the script to send the info that was submited
: > : to go to 2 other different scripts.
: > I don't think so.
: > You would need to send the info to one script and then have
: > it send the info to the other. If you don't know ahead of time
: > which programs are being called, you'll need to create some
: > kind of router:
: > <form method="post" action="/cgi-bin/router.pl">
: > <!-- Program names go in value -->
: > <input type="hidden" name="calls"
: value="perl_01.pl;perl_02.pl" />
: > .
: > .
: > .
: > </form>
: Ok but what is the code for router.pl
Depends on what perl_01.pl and perl_02.pl do and what
operating system your using. I'm sure perlipc would give
you good advice.
You could use 'open', lwp or change the programs to
accept command line as well as CGI input. You could
possibly write the router in bash or sh and call the
programs from the shell (in *nix). I have little idea how
you can do this. I'm not very familiar with the unix
Charles K. Clarkson
Head Bottle Washer,
Clarkson Energy Homes, Inc.
Small commercial and residential rehabilitation specialists.
CJ Web Work - Solutions for Real Estate Investors.