Posted on 2008-03-25 09:01:40-07 by rajar in response to 2096
Re: submit_form() and checkboxes
Hi, Default value for a checkbox is 'on' and 'off' . So, you can simply try
mechanize->submit_form(form_name => 'environment_modify', fields => { 'envi +ronment_modify_add_host_essential_1' => 'on', }, );
"environment_modify_add_host_essential_1" is the checkbox and it is initially in 'off' state. When you turn it on it will be ticked. Thanks, Raja.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.