[thelist] CGI to Cold Fusion
Lindsay Evans
lindsay at NOSPAMredsquare.com.au
Tue Jun 5 00:28:05 CDT 2001
> Side note: It seems like this should be easier. Isn't most of cold fusion
> derived from cgi?
not really,
might have an answer for you though:
in test.cgi, print your variables out like so:
print "myvar1 = \"$myvar1\"";
print "myvar2 = \"$myvar2\"";
(i think thats right, my perl is a bit rusty)
then in the calling cf page, have something along these lines:
<cfhttp url="http://127.0.0.1/path/to/test.cgi" method="get"></cfhttp>
<cfscript>
Evaluate("#CFHTTP.FileContent#");
</cfscript>
<cfoutput>myvar1: #myvar1#<br />myvar2: #myvar2#</cfoutput>
tested this in asp, and it worked fine, i can't see any reason why it
wouldn't work in perl
hth
--
Lindsay Evans.
Production Artist/Coder,
Red Square Productions.
vox: 8596.4000
fax: 8596.4001
web: www.redsquare.com.au
More information about the thelist
mailing list