On Sun, May 14, 2006 at 05:00:08PM -0600, Chad Perrin wrote: > On Sun, May 14, 2006 at 06:43:13PM -0400, Ricky Zhou wrote: > > > For your specific problem, try using <!--#include > > virtual="/cgi-bin/bar.pl" --> > > How do I go about passing variables to the script via include virtual > without using cookies, then? My understanding is that include virtual > won't allow passing variables via the URL (for example).
To answer my own question: It appears, based on some experimentation, that I can pass variables in the SSI statement itself, but there doesn't seem to be a simple way to feed them dynamically into the SSI statement. I'll be poking around for a means of doing so, unless some kind soul has an answer to this fairly off-topic issue here before I find the information I seek. The include virtual directive did indeed place program output from bar.pl into foo.shtml before sending it to the browser, however, so the big "no worky" hurdle seems to have been overcome. I appreciate the advice thus far. > > > (For exec, it's exec cmd, not exec cgi). > > I'll give cmd a whirl, though cgi seems to work great if all my page > content is coming from the CGI script. Is there some specific > difference in behavior between cmd and cgi in this of which I'm not > aware? It seems that exec cmd is reserved for shell commands -- which is interesting, and something I'll remember for future reference, but not useful for this particular issue. . . . I'm still curious about why exec cgi works for a page generated entirely by the CGI script, but not for CGI script output that I want to include in the middle of a page of otherwise fairly mundane markup. Since that's really the most on-topic part of my question for this list, as far as I'm aware, I'm hoping someone has an explanation for that bit of trivia. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] Ben Franklin: "As we enjoy great Advantages from the Inventions of others we should be glad of an Opportunity to serve others by any Invention of ours, and this we should do freely and generously." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>