Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: WWW::Mechanize clicking checkboxes

by Anonymous Monk
on Mar 21, 2011 at 17:42 UTC ( [id://894587]=note: print w/replies, xml ) Need Help??


in reply to Re^3: WWW::Mechanize clicking checkboxes
in thread WWW::Mechanize clicking checkboxes

Sorry for bugging you again. All the textboxes have the same name with a different value. They are all named post_category[] with values between 1 and 20ish. Can I assume I can just do 'post_category[]' => '1, 3, 4, 6' to make checkboxes in all the listed fields? Or is there some other way I have to add them?
  • Comment on Re^4: WWW::Mechanize clicking checkboxes

Replies are listed 'Best First'.
Re^5: WWW::Mechanize clicking checkboxes
by Corion (Patriarch) on Mar 21, 2011 at 18:02 UTC

    Maybe now is a good time to actually learn about HTTP and query parameters? Compare what your browser sends to what your script will send if you write it that way.

    Also take a look at ->set_fields.

Re^5: WWW::Mechanize clicking checkboxes
by Anonymous Monk on Mar 21, 2011 at 19:17 UTC
    I concur wholeheartedly with Corion, Ovid's CGI Course is a good start

    Also, for every question like this you have, you should write a small program to answer it, like this

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-18 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found