Can I put Multiple handlers in a CGI script?

andu undo at cloud9.net
Tue Aug 27 19:52:01 EDT 2002


--On Tuesday, August 27, 2002 18:35:01 -0400 Rich Mooney 
<tech at paynesparkman.com> wrote:

> 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:

You can put as many handlers and/or functions in cgi scripts as you need.

>
># ! 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
>
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
>



Regards, Andu Novac



More information about the metacard mailing list