Index  Up  <<  >>  


FormAction

Allows you to set up a form action (like the standard ones return, submit, refresh, etc.). It requires a Perl subroutine as a target:

    FormAction foo <<EOR
    sub {
        $CGI->{mv_nextpage} = 'bar';
    }
    EOR

If it returns a true (non-zero, non-empty) value, MiniVend will display the page defined in $CGI->{mv_nextpage}. Otherwise, MiniVend will not display any page (assuming you took care of that in your routine).

You can override the default MiniVend actions if you desire.

There is also a catalog-specific version of this directive, which overrides any action of the same name.


Index  Up  <<  >>