Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

How do I get CGI Parameters through a server-parsed HTML page?

by Kozz (Friar)
on Jun 19, 2002 at 14:09 UTC ( #175688=perlquestion: print w/replies, xml ) Need Help??

Kozz has asked for the wisdom of the Perl Monks concerning the following question:

I've got a server-parsed html page (say, filename.shtml) which contains an "include virtual" directive that looks like
<!--#include virtual="/cgi-bin/gallery.cgi" -->
If I call this page as
how can I tell the CGI module to parse the QUERY_STRING from the original REQUEST_URI so that the CGI will behave as if I called it directly as
? Thanks for your help.

Originally posted as a Categorized Question.

Replies are listed 'Best First'.
Re: How do I get CGI Parameters through a server-parsed HTML page?
by merlyn (Sage) on Jun 19, 2002 at 14:32 UTC
    You can't. If you use the deprecated #exec cgi directive rather than #include virtual, then they will be available.

    But why not just have the entire page be generated by CGI? That would make more sense.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://175688]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2021-09-22 02:55 GMT
Find Nodes?
    Voting Booth?

    No recent polls found