<!--#exec cgi="/cgi-bin/mywebsite/myscript.pl?param1=value1¶m2=value2" --> <!--#include virtual="/cgi-bin/mywebsite/myscript.pl value1 value2" -->
The include virtual element should be used in preference to exec cgi. In particular, if you need to pass additional arguments to a CGI program, using the query string, this cannot be done with exec cgi, but can be done with include virtual, as shown here:<!--#include virtual="/cgi-bin/example.cgi?argument=value" -->
#include virtual) and "global" variables in the URL of the webpage. #include virtual for "global" as well as "local" variables but it doesn't seem to work. It allows me to get the "local" variables with cgi->param("myvariablename") but it won't detect the "global" ones. <!--#set var="widget" value="red" --> <!--#include virtual=/cgi-bin/example.cgi?ip=$REMOTE_ADDR" -->