in reply to WWW::Mechanize & HTML
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! |
|---|
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: WWW::Mechanize & HTML
by Anonymous Monk on Oct 08, 2003 at 13:36 UTC | |
|
Re: Re: WWW::Mechanize & HTML
by Anonymous Monk on Oct 08, 2003 at 14:02 UTC | |
by Anonymous Monk on Oct 08, 2003 at 15:06 UTC |