On Tue, Jul 11, 2006 at 01:47:26PM +0300, Gabor Szabo wrote: > On a form the submit button looks like this: > > <input type="submit" name="submit" value="Update" /> > > when this form is submitted using > > $w->submit_form ( > fields => { > fname => 'Foo', > }); > > the field submit and its value Update does not seem to be sent > to web server. If I add > > submit => 'Update', > > to the list of the fields, it silently ignores this field. > In my case this causes the application to fail as it derives some state > information from the value of the submit field. > > Using Firefox the submit=Update is sent to the server. > > How can I fix this?
WWW::Mechanize(3pm) $mech->submit_form( ... ) This method lets you select a form from the previously fetched page, fill in its fields, and submit it. It combines the form_number/form_name, set_fields and click methods into one higher level call. Its arguments are a list of key/value pairs, all of which are optional. [stripped] * button => button Clicks on button button (calls "click()") J -- Jody Belka knew (at) pimb (dot) org