You can find the name by looking for the name="something" tag in the form or input tags, but as you have discovered, there is no requirement for them to be named at all, the form you have here doesn't have a name. WWW::Mechanize also lets you select forms by number, rather than name, so you can use $agent->form_number(1) to select the form you want to work with, and can just use $agent->submit() to submit the form, and just ignore the buttons altogether.
| We're not surrounded, we're in a target-rich environment! |
|---|
In reply to Re: WWW::Mechanize & HTML
by jasonk
in thread WWW::Mechanize & HTML
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |