I have a script that's already running, we'll call it template1.cgi.
It takes parameters such as title, etc...in the form template1.cgi?title=My page&name=pair&etc...
That's fine.
Now I writing another script. And it doesn't matter what language. But for this example:
page.cgi
#!/usr/bin/perl
print "content-type: text/html\n\n";
@x = `/pathToScript/template1.cgi 'title=My Page&key=value, etc...' ` ;
print @x;
When page.cgi is run in the shell such as /bin/bash, I get a full page.
When page.cgi is called via a web browser and processed by apache, it will print out the template except that the parameters just disappear.
Any guesses?