Thanks for your help. After reading some of the docs on this module it shows how to follow_link as if you were following an HTML link.
This is a two page form, how do I then submit the information on the next page? Would I just put in the next form code (as seen below)?
#!/usr/bin/perl
use warnings;
uses strict;
use CGI qw/:standard/;
use WWW::Mechanize;
my $mech = WWW::Mechanize->new();
$mech->submit_form(
form_number => 1,
fields => {
username => 'user'
}
);
####
# the previous form redirects us to a new page/form. This
# should fill out that form the, right?
####
$mech->submit_form(
form_number => 1,
fields => {
password => '12345'
}
);
####
# at this time, cookies should be saved allowing me to use
# Mechanize to pull back ANY $url I want on Neopets.com.
####
|