package HTML::Form;
use strict;
use URI;
use Carp ();
use vars qw($VERSION);
$VERSION='1.00';
my %form_tags = map {$_ => 1} qw(input textarea button select option);
my %type2class = (
text => "TextInput",
password => "TextInput",
hidden => "TextInput",
textarea => "TextInput",
button => "IgnoreInput",
"reset" => "IgnoreInput",
radio => "ListInput",
checkbox => "ListInput",
option => "ListInput",
submit => "SubmitInput",
image => "ImageInput",
file => "FileInput",
);
=head1 NAME
HTML::Form - Class that represents an HTML form element
=head1 SYNOPSIS
use HTML::Form;
$form = HTML::Form->parse($html, $base_uri);
$form->value(query => "Perl");
use LWP::UserAgent;
$ua = LWP::UserAgent->new;
$response = $ua->request($form->click);
=head1 DESCRIPTION
Objects of the C class represents a single HTML
CformE ... E/formE> instance. A form consist of a
sequence of inputs that usually have names, and which can take on
various values. The state of a form can be tweaked and it can then be
asked to provide HTTP::Request objects that can be passed to LWP.
The following constructor methods are available:
=over 4
=item @forms = HTML::Form->parse( $html_document, $base_uri )
The parse() class method will parse an HTML document and build up
C objects for each