Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: WWW::Mechanize and submit button question

by srdst13 (Pilgrim)
on Aug 08, 2005 at 13:22 UTC ( [id://481868]=note: print w/replies, xml ) Need Help??


in reply to Re: WWW::Mechanize and submit button question
in thread WWW::Mechanize and submit button question

Martin,

Thanks for the reply. However, I get the same response using both sets of code. I think the code you posted and mine are functionally the same, if my reading of the docs is correct, except that submit_form does not click a button for the form submission. Since the CGI is looking for the submit button parameter to be present and true, I think I need the "click" method there.

Sean

Replies are listed 'Best First'.
Re^3: WWW::Mechanize and submit button question
by marto (Cardinal) on Aug 08, 2005 at 13:32 UTC
    Hi Sean,

    Sorry that didnt work.
    Try using the following to submit the form rather than the method I suggested:
    $mech->submit();
    From the docs: "Submits the page, without specifying a button to click. Actually, no button is clicked at all."
    I think that using your code you posted and the $mech->submit(); rather than the $mech->click(); method may help.

    Thanks.

    Martin

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://481868]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-29 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found