Q&A > CGI programming
Description:I've got a server-parsed html page (say, filename.shtml) which contains an "include virtual" directive that looks like
If I call this page as<!--#include virtual="/cgi-bin/gallery.cgi" -->
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 ashttp://domain.tld/filename.shtml?key=value&key2=value2
? Thanks for your help.http://domain.tld/cgi-bin/gallery.cgi?key=value&key2=value2
|Answer: How do I get CGI Parameters through a server-parsed HTML page?|
contributed by merlyn
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.
Please (register and) log in if you wish to add an answer
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr