On 06/25/2007 12:48 PM, Paul Robbins wrote:
I'm unning into some trouble populating two option fields on a form
using Mechanize. They both have the same name
and when I try and use form->param("RequestMethods", "Direct",
"Print") it only sets the first one to Print and
doesn't set the second one. Any help is appreciated. The HTML code is
below.
[...]
Perhaps the POD for WWW::Mechanize can help:
$mech->set_fields( $name => $value ... )
This method sets multiple fields of the current form. It takes a list
of field name and value pairs. If there is more than one field with the
same name, the first one found is set. If you want to select which of
the duplicate field to set, use a value which is an anonymous array
which has the field value and its number as the 2 elements.