Click here to get back home

Form submit with mechanize 0.72

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Form submit with mechanize 0.72 Cashbackre 02-23-2008
Get Chitika Premium
Posted by Cashbackre on February 23, 2008, 8:38 am
Please log in for more thread options
I am currently using mechanize 0.72 on active perl 5.8.6 for some
strange reason I cannot upgrade to the current version
of 1.34 so this is not an option, the problem is I am trying to submit
my login details on a page with two forms
with the same name but different values, I am trying to submit to the
second form with relevant form html:
<input type=submit name=submit value=" S E N D ">,
I understand mechanize 1.34 has a click_button function, whereby I can
click by value, however 0.72 does not have the click_button function,
I can fill in my username and password, and check that they have been
filled in correctly but every submission of the form either via
$mech->click("submit");
or $mech->submit();
or $mech->submit("submit");
ends up submitting the very first form

Posted by J. Gleixner on February 25, 2008, 11:39 am
Please log in for more thread options
Cashbackre wrote:
> I am currently using mechanize 0.72 on active perl 5.8.6 for some
> strange reason I cannot upgrade to the current version
> of 1.34 so this is not an option, the problem is I am trying to submit
> my login details on a page with two forms
> with the same name but different values, I am trying to submit to the
> second form with relevant form html:
> <input type=submit name=submit value=" S E N D ">,
> I understand mechanize 1.34 has a click_button function, whereby I can
> click by value, however 0.72 does not have the click_button function,
> I can fill in my username and password, and check that they have been
> filled in correctly but every submission of the form either via
> $mech->click("submit");
> or $mech->submit();
> or $mech->submit("submit");
> ends up submitting the very first form

The place to start is with the documentation.

Is there a 'form_number' attribute for the submit or
submit_form method?

Similar ThreadsPosted
Getting WWW::Mechanize to submit a form September 13, 2007, 11:58 am
HTTP::Request::Form - Can't submit a form with input type=image button January 31, 2005, 11:42 pm
how to fill out a form and submit?? August 10, 2005, 7:20 pm
submit the form concept November 17, 2005, 10:47 pm
using LWP to POST data via "javascript:document.form.submit()" link January 3, 2006, 1:20 am
one submit button to call cgi script and process link in another form March 20, 2006, 11:07 pm
Posting UTF-8 form data with WWW::Mechanize and LWP May 11, 2005, 7:12 pm
submitting a form with no name attribute with mechanize November 2, 2006, 7:44 pm
Problem With WWW::Mechanize With July 14, 2005, 1:05 pm
Multiple submit actions. December 28, 2004, 4:57 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap