Gordon Rowell > CGI-FormMagick-0.89 > CGI::FormMagick::Events

Download:
CGI-FormMagick-0.89.tar.gz

Annotate this POD

CPAN RT

New  1
Open  0
Stalled  9
View/Report Bugs
Source  

NAME ^

CGI::FormMagick::Events -- pre/post form/page event handlers

SYNOPSIS ^

  use CGI::FormMagick;

DESCRIPTION ^

$fm->form_pre_event()

performs the PRE-EVENT (if any) for the form. Usually used to do setup for the application.

this is the routine where we call some routine that will give us default data for the form, or otherwise do things that need doing before the form is submitted.

$fm->form_post_event()

performs validation and runs the POST-EVENT (if any) otherwise just prints out the data that the user input

Note: we need to validate EVERY ONE of the form inputs to make sure malicious attacks don't happen. See also "SECURITY CONSIDERATIONS" in the perldoc for how to get around this :-/

$fm->page_pre_event()

Performs the PAGE PRE-EVENT (if any).

XXX NEEDS TESTS

$fm->page_post_event()

Performs the PAGE POST-EVENT (if any).

XXX NEEDS TESTS

SEE ALSO ^

CGI::FormMagick

syntax highlighting: