Greetings,
I am trying to use WWW:Mechanize to login into a website, and I am having trouble getting it to click on the Submit button. There is several buttons on the html but this is the first button that is an image. (Image just says "Login".)
I know this is a basic question, what am I doing wrong?
Thank you,
Joe.
*****************************************
[Abba:~/oldperlcode] josephal% roycefunds
No clickable input with name Submit at /Library/Perl/5.8.1/WWW/Mechanize.pm line 643
[Abba:~/oldperlcode] josephal%
***************************************
sub main { my ($id, $pass) = @_;
$m->get('https://www2.financialtrans.com/tf/FANWeb? tx=Disclaim&cz=51714240204') || die "can't get login screen";
$m->set_visible($id, $pass );
$m->click("Submit");
my $html = $m->content;
print $html;
exit;
****************************
<td colspan=2>
You may proceed with the <b>Account Login</b> if you are an existing Royce account holder who has previously completed the <b>registration</b> process below.
</td>
</tr>
<tr>
<th align=left width=28%>Social Security Number / TIN:</th>
<td align=left width=72%><input size=9 maxlength=9 type="text" name="tin" value=""> <i>without dashes</i></td>
</tr>
<tr>
<th align=left>Password / PIN:</th>
<td align=left><input size=8 maxlength=8 type="password" name="pin" value=""> <i>if you've forgotten your PIN, <a href="#resetpin" class="bodyLink">click here</a></td>
</tr>
<tr>
<td align=left colspan=2>
<input type="hidden" name="accessmethod" value="SSN">
<input type="hidden" name="portfolio" value=1 checked>
<input type="image" name="Submit" border=0 src="/mf/royce/images/button_login.gif">
