in reply to www: mechanize autologin issue

maybe this isn't working because you're doing
$mech->click_button(number => 1);
before filling in the forms? since you're already using $mech->submit(); afterwards, perhaps removing the click_button statement will fix this.

Replies are listed 'Best First'.
Re^2: www: mechanize autologin issue
by hiverbee (Initiate) on Jan 07, 2005 at 18:00 UTC
    Actually the 'click_button' is applied to the sites home page. Once clicked I am redirected to the sites login page, where the field values are set, and 'submit' is applied. The problem that I seem to be having, is the redirection back to the login page with acceptance of the user field and denial of the password field. I'm afraid I may be missing something simple. Could it be that I have to set a field 'type' for the password?