digifilm wrote/ schreef:
> howdy,
>
> Can some one help me with an example of cgi in metacard?
I have the same question. I just discovered how MC CGI works, but not how to
set up the server. This is what I've found out so far:
A MetaCard CGI script looks like this:
------- Start -------
#!mc
on startup
-- put your stuff here
--mostlu using:
read until empty from stdin
-- to get you input, and:
put whateveroutputyouwant
-- for the output
end startup
-------- End --------
So this is a plain text file, called *.mt by convention.
Look at
http://www.metacard.com/stacks/echo.mt
for an example script, and at
http://www.metacard.com/cgi-bin/echo.mt?wheteverinputyouwant
for an example output of the example script.
> Debdoot
Hope this helps, and others can tell more,
Sjoerd
Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.