in reply to Clicking nameless buttons with WWW::Mechanize
It seems to work fine for me, i just can have a different action per form, and the button submits the form it is in.<form action="javascript:alert('1')"> <input type=submit /> </form> <form action="javascript:alert('2')"> <input type=submit /> </form>
Its described here$mech->submit_form( form_number => 1, fields => { username => 'mungo', password => 'lost-and-alone', } ); # as from $mech->submit_form( ... ) # If button is not passed, then the submit() method is used instea +d.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Clicking nameless buttons with WWW::Mechanize
by bobf (Monsignor) on Mar 15, 2005 at 05:45 UTC |