Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi.

I'm using the following code to submit a form. I want to know how I add the tick portion of Mechanize to allow the checking of fields. i'd like to know how to add it to the form snippet I posted below. Thanks!
$mech->submit_form( form_name =>'post', fields => { 'post_title' => '1', 'post_msg' => '1' } );

Replies are listed 'Best First'.
Re: WWW::Mechanize clicking checkboxes
by Anonymous Monk on Mar 21, 2011 at 17:12 UTC
    Exactly like you have it there, field, value
      So you're saying with the method I'm applying the FIELDS I don't have to use mech->tick at all?
        That is what I said, and no, i'm not kidding, try it, you'll see