For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > July 2004 > WWW::Mechanize module: multiple Select.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author WWW::Mechanize module: multiple Select.
Charlie

2004-07-14, 3:55 am

Hi Folks,
It seems to me that there is a bug in the WWW::Mechanize module that
"multiple Select" does not work correctly.

Here is the code that written in PERL that gives "illegual value '452'
for field 'keyword' during the runtime.
"

$mech = WWW::Mechanize->new();
$mech->form(1);
$mech->field('keyword', 452);
$mech->submit();
....
"
Does anyone know a way to work around. I do not have the permission to
check the HTML file. And I have to select the keywords many many times
MANUALLY if that perl scripts does not work.

Any help ?

CJI.

Here is the html file I was going to access:

<FORM NAME="order_create" METHOD="POST"
ACTION="/cgi-bin/staffing/manager/ordervalidate_p2.pl" >
....
<TABLE border=0 bgcolor="#eeeeee" cellpadding="3" cellspacing="0"
width=100%>

<select name="keywords" MULTIPLE size=8>
<option value="452">10 Key</option><option
value="445">Access</option><option
value="446">Administrative</option><option value="1">Administrative
Assistant</option><option value="363">Administrative/Clerical</option>
</select>
</TABLE>
....
</FORM>
Joe Smith

2004-07-16, 8:56 pm

Charlie wrote:

> Here is the code that written in PERL that gives "illegual value '452'
> for field 'keyword' during the runtime.


That's what happens if you have a misspelling of a required field.

> <select name="keywords" MULTIPLE size=8>
> <option value="452">10 Key</option>


That says to use 'keywords' not 'keyword'.
-Joe
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com