Mechanize and form->param()

"Paul Robbins" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
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.

Thanks.

~Paul




<td valign=center align=right><font size="3" face="Arial,
Helvetica">Primary Delivery Method:</font></td>
<input type="hidden" name="NumRequestChoices" value="2">

<td valign=center><select name="RequestMethods">
<OPTION> </OPTION>

<OPTION

>Fax</OPTION>

<OPTION

>Direct</OPTION>

<OPTION

>Print</OPTION>

<OPTION

>Email</OPTION>

</select></td>
</tr>

<tr>
<td align=right><font size="3" face="Arial, Helvetica">Backup Delivery
Method:</font></td>

<td valign=center><select name="RequestMethods">
<OPTION> </OPTION>

<OPTION

>Fax</OPTION>

<OPTION

>Direct</OPTION>

<OPTION

>Print</OPTION>

<OPTION

>Email</OPTION>

</select></td>
</tr>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.