NAME

EWS::htmlform - object-oriented perl module to fetch form input information.


SYNOPSIS

 use EWS::htmlform;

 $html = new EWS::htmlform(-debug => 0);

 %formData = $html->formData;

 ...

DESCRIPTION

EWS::htmlform is an object-oriented perl class which provides methods to read the form data returned from an user-agent (browser).

VERSION

This is version 1.0 of EWS::htmlform.

PUBLIC METHODS

new

$html = new EWS::htmlform(%parameters);

or

$html = EWS::htmlform->new(%parameters);

    Enter:
      %parameters = parameter hash (see below).
    Exit:
      returns a blessed reference to a new htmlform object.

    parameters are of the form:

      -arg => value

    acceptable values are:
      -debug     => 1 = debug messages
          -baseIO    => baseIO class object

Form Data Input

formDataHash

Returns the form data hash

    Enter:
      none
    Exit:
      hash table of field name/value pairs
      Returns undef if no form data.

formDataHashRef

Returns a reference to the form data hash

    Enter:
      none
    Exit:
      reference to the hash table of field name/value pairs
      Returns undef if no form data.

getFormData

Load the form data from browser agent

    Enter:
      none
    Exit:
      1 if successful
      0 if error

PUBLIC ATTRIBUTES

Revision

The Revision method returns the revision number of htmlform.pm:

      $revision = $htmlform->Revision;

    Enter:
      none.
    Exit:
      current revision string.

Version

The Version method returns the version number of htmlform.pm:

      $version = $htmlform->Version;

    Enter:
      none.
    Exit:
      current version string.

DEPENDENCIES

EWS::htmlform is dependent upon the following support modules:

EWS::baseIO

baseIO is a common input/output and simple tracing class. It provides an object-oriented, redirectable access to console input and output, allows standard redirection, and provides a mechanism to allow output to be sent to the current console, a log file, or both.

AVAILABILITY

EWS::htmlform is available at

AUTHOR

Jay Wheeler, EarthWalk Software.

COPYRIGHT

EWS::htmlform is copyright © 2002. EarthWalk Software.

This module is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This module is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA