in reply to Re: WWW::Mechanize and submit button question
in thread WWW::Mechanize and submit button question

Martin,

Thanks for the reply. However, I get the same response using both sets of code. I think the code you posted and mine are functionally the same, if my reading of the docs is correct, except that submit_form does not click a button for the form submission. Since the CGI is looking for the submit button parameter to be present and true, I think I need the "click" method there.

Sean
  • Comment on Re^2: WWW::Mechanize and submit button question

Replies are listed 'Best First'.
Re^3: WWW::Mechanize and submit button question
by marto (Cardinal) on Aug 08, 2005 at 13:32 UTC
    Hi Sean,

    Sorry that didnt work.
    Try using the following to submit the form rather than the method I suggested:
    $mech->submit();
    From the docs: "Submits the page, without specifying a button to click. Actually, no button is clicked at all."
    I think that using your code you posted and the $mech->submit(); rather than the $mech->click(); method may help.

    Thanks.

    Martin