Re: WWW::Mechanize 1.18 passing value of submit field

2006-07-11 Thread Jody Belka
On Tue, Jul 11, 2006 at 05:07:02PM +0300, Gabor Szabo wrote: > From the documentation it is not clear (to me) why is the value of the > submit > button sent only if I specify button => button > The doc only sais this: > > If button is not passed, then the "submit()" method is used instead.

Re: WWW::Mechanize 1.18 passing value of submit field

2006-07-11 Thread Gabor Szabo
On 7/11/06, Andy Lester <[EMAIL PROTECTED]> wrote: On Jul 11, 2006, at 9:07 AM, Gabor Szabo wrote: > If button is not passed, then the "submit()" method is used > instead. Perhaps it could be clearer then: submit() does not pass any button unless you specify it. Yes maybe that, in addit

Re: WWW::Mechanize 1.18 passing value of submit field

2006-07-11 Thread Andy Lester
On Jul 11, 2006, at 9:07 AM, Gabor Szabo wrote: If button is not passed, then the "submit()" method is used instead. Perhaps it could be clearer then: submit() does not pass any button unless you specify it. -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: WWW::Mechanize 1.18 passing value of submit field

2006-07-11 Thread Gabor Szabo
On 7/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 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_

Re: WWW::Mechanize 1.18 passing value of submit field

2006-07-11 Thread Andy Lester
the field submit and its value Update does not seem to be sent to web server. If I add submit => 'Update', That's right. It's possible to submit a form without specifying a submit button. If you want the submit button clicked, then you have to explicitly specify it. Also, th

Re: WWW::Mechanize 1.18 passing value of submit field

2006-07-11 Thread lists-p6
On Tue, Jul 11, 2006 at 01:47:26PM +0300, Gabor Szabo wrote: > On a form the submit button looks like this: > > > > when this form is submitted using > > $w->submit_form ( >fields => { >fname => 'Foo', >}); > > the field submit and its value Update does not seem to

WWW::Mechanize 1.18 passing value of submit field

2006-07-11 Thread Gabor Szabo
On a form the submit button looks like this: 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