in reply to
Re^7: javascript login
in thread javascript login
I put strict off and it gives no errors, then i ran it and it gave line 6 unknown agent 'firefox'
and line 1900 of mechanize.pm says there is no form numbered 2, How can i resolve the first error and where does it say the form of html? sorry I am slow in this but I appreciate your help very much:)
my $mech = WWW::Mechanize->new();
$mech->agent_alias( 'Firefox' );
$userid = "usr";
$password = "password";
$mech->get( "https://login.binck.nl/klanten/Login.aspx?ReturnUrl=%2fkl
+anten%2fdefault.aspx" );
$mech->submit_form(
form_number => 2,
fields => {
userid => "$userid",
password => "$password"
},
button => "btnSignon"
);