Thanks, Tim, your link had the answer. The script should be included as <!--#exec cgi="/cgi-bin/file.cgi" -->
The cgi parameters are then passed to the script, and are available via the usual CGI.pm methods. David. On 21 Mar 2002, at 11:02, Tim Doty wrote: > If I understand what you are wanting to do: > > http://httpd.apache.org/docs/mod/mod_include.html > > has information on this. To keep it with an include virtual you would have > to echo back the parameters (which are stored in QUERY_STRING), or you could > use exec instead of include. > > Tim > > > -----Original Message----- > > From: David R. Baird [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, March 21, 2002 10:19 AM > > To: [EMAIL PROTECTED] > > Subject: accessing CGI params from an included script > > > > > > I have an html template file, > > > > /path/to/htdocs/file.html > > > > and I slip in a cgi script using SSI: > > > > <!--#INCLUDE virtual="/cgi-bin/file.cgi" --> > > > > The file executes fine, but how can my cgi script access any > > parameters being sent to the file, e.g. > > > > /path/to/htdocs/file.html?name1=val1 > > > > I'm running Apache/mod_perl on Win 98. > > > > Thanks, > > > > David Baird. > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]