[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SLUG] Perl last hope..



On Mon, 19 Jun 2000, George Vieira wrote:

> 
> My "signup.cgi" is calling "counter.cgi" OK but is failing to pass the
> "domain" and "page" parameters over on the command line:
> $outcount=`/home/httpd/cgi-bin/counter.cgi domain=www.hexidecimal.com.au
> page=signup visible=true`;
> 
> inside of the counter.cgi script...
> domain=""
> page=""
> 
> Why does this fail? Is there another syntax to send to a CGI within a CGI???
> Works fine on the shell prompt but not within another CGI?

Think about it. You are *NOT* calling the counter.cgi script
from the command-line ... you are inside a CGI shell. Since the
environment variable GATEWAY_INTERFACE=CGI/whatever and a lot
of other CGI env vars are present, the command-line args are
ignored. Snoop around CGI.PM pod documentation to find a way
to force it to read the command-line args.

BTW: this has anothing to do with perl. It is all CGI stuff.


-rickw



--
Rick Welykochy || Praxis Services


--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to slug-request@nospam.slug.org.au with
unsubscribe in the text