--- Werner Otto <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> How to I include or call another cgi script from a current one.
> What does the syntax look like?
Don't do it that way; See perldoc require
That is what I would recommend - otherwise you would need to have the
"called" cgi call your original script again -- OR, you can simply do
this (as an example only and not called as a cgi - there isn't any need
to do it that way) --
if (condition) {
# Rebuild each Categories index.html file...
chdir("/HR/AP");
system("/rt/apache2/cgi/CreateIndexes.pl AP > /HR/AP/index.html");
}
If you *must* try it as a cgi, then use the HTTP Location header like
this:
print "Location
/cgi/some.cgi?SomeParams=SomeData&someotherParams=SomeotherData\n\n";
exit;
You have to exit the current CGI as there is no way to get back to it -
the WWW is stateless in this regard. That is why I strongly recommend
doing what you are attempting in one stroke.
(PS - What Jan suggested really is the best way IMHO.)
HTH/Bill
=====
-Sx-
seeking employment: http://youve-reached-the.endoftheinternet.org/
__________________________________
Do you Yahoo!?
Yahoo! Domains � Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>