Thanks for your reply. I tried your with_fields suggestion and got this message:

2 elements found for form with fields usr_password usr_name at mon2.pl line 32.

By trial and error I found that those are forms number 3 and 4 but when I try both form numbers I get the same result as before when I was going with the form name of logonform.

>>Are you watching to make sure that the script is actually filling out the form?

Yes, I can see that it is.

>>UPDATE: Are you sure the name of that form is correct on that route? When I inspect with FireBug, I see the form name as 'homeLogonForm' ..not 'logonform'.

That explains why calling "with_fields" finds 2 forms that match the fields. I found logonform by code inspection but I switched to homeLogonForm and am getting the same result. If I was using an incorrect name or incorrect fields for the name, Mechanize::Firefox reports an error.


In reply to Re^2: Need help logging into my bank with WWW::Mechanize::Firefox by johnblack
in thread Need help logging into my bank with WWW::Mechanize::Firefox by johnblack

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.