
KevinR
Veteran

Aug 13, 2009, 10:22 AM
Post #7 of 11
(2353 views)
|
Re: [mott3510] Outputting text from a perl script to a html page.
[In reply to]
|
Can't Post
|
|
I figured that would be the easiest way and i tried: <!--#include virtual="./decodeMetars.cgi KOUN"--> <!--#exec cgi="./decodeMetars.cgi KOUN"--> and keep getting the same error message: [an error occurred while processing this directive] I know this is a very common error and can be just about anything, but I have yet to figure out what is causing it. oops... this also looks wrong: <!--#include virtual="./decodeMetars.cgi KOUN"--> It is running as a CGI process so you need to send the data as query string data: <!--#include virtual="./decodeMetars.cgi?name=KOUN"--> and the perl script has to know it needs to extract KOUN out of the query string. Maybe using 'exec' you can send command line data to the perl script, but I'm not sure. -------------------------------------------------
(This post was edited by KevinR on Aug 13, 2009, 10:22 AM)
|