Can I put Multiple handlers in a CGI script?

Rich Mooney tech at paynesparkman.com
Tue Aug 27 18:37:01 EDT 2002


As I understand it, a CGI needs to be in the following format:

#! mc
on Startup
    #script
end Startup

I also have the impression that any script in this CGI had to be between "on
Startup" and "end Startup".
So does this mean that one CGI file is one handler and that I can't pass
arguments to it or can I do something like this:

#! mc
on Startup
    on handler1 param1 param2
        # do stuff
    end handler1
    function dosomething
        # do stuff
    end dosomething
end Startup

Rich Mooney
Payne Sparkman Mfg.
shop at paynesparkman.com




More information about the metacard mailing list