Hi All,
I am trying to user LWP::Useragent and HTML::Form to load a form including all the inputs, change a value or two then resubmit the form. My problem is that I am losing the inputs when I resubmit the form. My code is below:
Thanks
Murray
use LWP::UserAgent;
use HTTP::Cookies;
use HTTP::Request;
use HTTP::Response;
use HTML::Form;
.
.
.
$response = $ua->request(HTTP::Request->new(GET => "$edit_user_url"));
my $form = HTML::Form->parse($response);
#print $form->dump; # print form values
$form->value("field_2",$mobile); # Change this value
$req = $form->make_request;
#$req = $form->click;
$res = $ua->post($edit_user_url,$req);
print $res->content;